There is a comparator for sorting in the reverse order.
class Comp<T> : IComparer<T> where T : IComparable<T> { public int Compare(T x, T y) { return -x.CompareTo(y); //return y - x; } } Question: Is it possible to make it so that it is possible to return y - x as a result of the comparison, as in the commented section (this makes it difficult to make a generic type T)