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
9 lines
233 B
Lua
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
|