slight sorting improvement

This commit is contained in:
Manuel Simon Hirsig
2016-02-03 18:14:07 +01:00
parent 6c5292e415
commit 680abe6f5d
4 changed files with 12 additions and 5 deletions
+9
View File
@@ -81,4 +81,13 @@ function public.compare_from_lt(lt)
return public.EQ
end
end
end
function public.multi_lt(...)
for i=1,arg.n-1,2 do
if arg[i] ~= arg[i+1] then
return arg[i] < arg[i+1]
end
end
return false
end