Use Novo's math-sort class:
http://forums.graalonline.com/forums...ad.php?t=74117
and the following code:
PHP Code:
function onCreated() {
// Join Sort Class
join("math-sort");
// Echo Before..
this.rankings = {{300, player.account}, {245, player.account}, {439, player.account}};
echo(this.rankings);
// Declare compareTo method.
temp.func = function(sideA, sideB)
{
return ( sideA[0] < sideB[0] );
};
// Echo After
temp.sorted = sortList( this.rankings, temp.func );
echo( temp.sorted );
}