how to arrange the result of an array in ascending or descending form?
I have an NPC that counts the time the clan is holding the castle and I play this time in an array:
$rank(getcastledata($Castles$[.@e],1)),.@time;
now I want to organize by ex in a WoE rank, get the results by array for example: $rank(getcastledata($Castles$[.@e],1)) and organize from highest to lowest.
the variable is saved with the name of $ran the index is the cla id and the value is the time.
I can print the results but I want him to put in descending order the result of the value column.
Question
Orce
how to arrange the result of an array in ascending or descending form?
I have an NPC that counts the time the clan is holding the castle and I play this time in an array:
$rank(getcastledata($Castles$[.@e],1)),.@time;
now I want to organize by ex in a WoE rank, get the results by array for example: $rank(getcastledata($Castles$[.@e],1)) and organize from highest to lowest.
the variable is saved with the name of $ran the index is the cla id and the value is the time.
I can print the results but I want him to put in descending order the result of the value column.
thks.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.