View Single Post
  #5  
Old 06-01-2008, 11:25 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
HTML Code:
function onCreated() {
  for (temp.i: allplayers) 
    temp.accs.add({i, i.rupees});
    
  for (i: accs) {
    temp.e.add(i[0]);
    temp.e[temp.c].sortvalue = i[1];
    temp.c++;
  }
  e.sortbyvalue("sortvalue", "float", false);
  
  for (i = 0; i < accs.size(); i++) 
    echo(e[i] SPC e[i].rupees);
}  
should do it
Reply With Quote