News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..
0 Members and 1 Guest are viewing this topic.
a={'i', 'o', 'a', 'e', 'u'}table.sort(a)for _, v in ipairs(a) do print(v)end
G = {}for k, v in pairs(_G) do G[#G+1] = {tostring(k), tostring(v)} -- #G is basically just a new syntax of table.getn(G), this # operator doesn't available in Bully's Lua v5.0.2endtable.sort(G, function(a, b) return a[1] < b[1]end)for _, v in ipairs(G) do print("Key: " .. v[1] .. "\nValue: " .. v[2] .. "\n")end