Start at the last element and if they are equivalent then check the next to the last and if they are equivalent check the next to the next to the last....
Your solution fails to produce the correct output because you are only comparing the last element.
Cheers - L~R
In reply to Re^2: Custom Sort An AoA
by Limbic~Region
in thread Custom Sort An AoA
by Limbic~Region
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |