tabela = {
{pessoa="Joao", idade=20},
{pessoa="Pedro", idade=22},
{pessoa="Lucas", idade=19},
{pessoa="Derp", idade=25}
}
table.sort(tabela, function(value1, value2) return value1.idade > value2.idade end)
for x=1, table.maxn(tabela) do
print(tabela[x].idade)
end
dGFiZWxhID0gewp7cGVzc29hPSJKb2FvIiwgaWRhZGU9MjB9LAp7cGVzc29hPSJQZWRybyIsIGlkYWRlPTIyfSwKe3Blc3NvYT0iTHVjYXMiLCBpZGFkZT0xOX0sCntwZXNzb2E9IkRlcnAiLCBpZGFkZT0yNX0KfQp0YWJsZS5zb3J0KHRhYmVsYSwgZnVuY3Rpb24odmFsdWUxLCB2YWx1ZTIpIHJldHVybiB2YWx1ZTEuaWRhZGUgPiB2YWx1ZTIuaWRhZGUgZW5kKQpmb3IgeD0xLCB0YWJsZS5tYXhuKHRhYmVsYSkgZG8KcHJpbnQodGFiZWxhW3hdLmlkYWRlKQplbmQ=