If I create a Comparer<T> for the purposes of sorting a set of objects, is there a simple way to ‘invert’ it so I can sort in the other direction? Or do I need to define a 2nd Comparer<T> with the tests in the Compare method swapped around?
If I create a Comparer<T> for the purposes of sorting a set of objects,
Share
This allows you to do something like: