SortedPairsByMemberValue
Example
Creates a table and prints its contents in order of the age member descending
Output: Charles
Adam
Returns an iterator function that can be used to loop through a table in order of member values, when the values of the table are also tables and contain that member.
To sort by value, use SortedPairsByValue.
To sort by keys, use SortedPairs.
Creates a table and prints its contents in order of the age member descending