Jump to content

help whit tabe.sort


bandi94

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...