IComparable`1 Interface

Defines a generalized comparison method that a value type or class implements to create a type-specific comparison method for ordering or sorting its instances.
T
The type of object to compare.