If you want to create an ordered list you don't need to compare "two" instance with each other, "For" does it and order them for you.
So let's say you want to create a scoreboard, your code would be like:
- For each (Object) ordered by (Score) (Descending)
- - Put (Object) at the top of the list
or
- For each (Object) ordered by (Score) (Ascending)
- - Put (Object) at the position of the list (loopindex)
It will start putting the smallest score in the list, then the second smallest above the smallest, and will finish with the highest at the top of alls.