update done

This commit is contained in:
Manuel Simon Hirsig
2016-02-03 17:47:06 +01:00
parent 79b721371d
commit 6c5292e415
5 changed files with 6 additions and 71 deletions
+3 -3
View File
@@ -71,11 +71,11 @@ function public.compare(a, b, nil_ordering)
end
end
function public.compare_from_lt(comp)
function public.compare_from_lt(lt)
return function(a, b)
if comp(a, b) then
if lt(a, b) then
return public.LT
elseif comp(b, a) then
elseif lt(b, a) then
return public.GT
else
return public.EQ