posted 20 years ago
Here's an example for sorting a List. (This is copied from my response to a similar question last month.) Note that you can write the compare routine to compare the values of as many properties as you need. My examples compare a single property, but I could have written them to first compare one value, and in the case of a tie, then compare another property. For example, I could have written one of the routines to first compare name, and if the names were the same, then compare weight.