RosettaCodeData/Task/Sort-an-integer-array/Lua/sort-an-integer-array.lua

4 lines
45 B
Lua

t = {4, 5, 2}
table.sort(t)
print(unpack(t))