Lua: sort table keys