Changes

m
no edit summary
Line 41: Line 41:  
     local sortKey = stringKey('sort', context, n)
 
     local sortKey = stringKey('sort', context, n)
 
     if sortKey then
 
     if sortKey then
         table.sort(collection, function(a, b) return a[sortKey] and b[sortKey] and a[sortKey] < b[sortKey] end)
+
         table.sort(collection, function(a, b) return a[sortKey] < b[sortKey] end)
 
     end
 
     end
 
     local i = 1
 
     local i = 1
cssedit, gkautomate
7,060

edits