bandi94 Posted November 27, 2011 Share Posted November 27, 2011 ok i need a tabel whit first 22 account's ( Top 22 in ascending order by points) whit table.sort i think but i don't know how to make it for now i have this : Top={} accounts=getAccounts() for i,v in pairs(accounts) do Top[i]={ account=v, point=getAccountData(v,"points"),} end how can i sort then in ascending order ( i need the first 22 only i don't need all account's in the sorted table only the first 22 whit most points Top 22 ) thx Link to comment
TAPL Posted November 27, 2011 Share Posted November 27, 2011 viewtopic.php?f=91&t=37249 Link to comment
bandi94 Posted November 27, 2011 Author Share Posted November 27, 2011 yes i know that topic but i don't get how the tabel.sort work for that i need some help for my script to expline how that function work .. Link to comment
unknooooown Posted November 27, 2011 Share Posted November 27, 2011 yes i know that topic but i don't get how the tabel.sort work for that i need some help for my script to expline how that function work .. http://lua-users.org/wiki/TableLibraryTutorial Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now