Pascal Abresch 13b78ff838 Added math.order
apparently builtin already has the math. namespace, testing for it doesn't seam to work?
but assigning an empty table over it makes it angry, so lets not do that
2019-10-04 04:38:18 +02:00

9 lines
233 B
Lua

function math.order(x, y) -- might change to arbitrary args later, but now now ... this is just the simple impl written for the quarry
if not x or not y then return nil end
if x <= y then
return x, y
else
return y, x
end
end