SortedPairs
Example
Example of usage.
Output: 1 e
2 b
3 d
4 c
5 a
---
a 5
b 2
c 4
d 3
e 1
This function can be used in a for loop instead of pairs. It sorts all keys alphabetically.
For sorting by specific value member, use SortedPairsByMemberValue.
For sorting by value, use SortedPairsByValue.
Example of usage.