Answers for "lua sort"

Lua
0

lua sort

local t = {1, 2, 3, 4, 5};

table.sort(t, function(a, b) return a < b end);
Posted by: Guest on December-31-2020

Browse Popular Code Answers by Language