IComparer`1 Interface

Defines a method that a type implements to compare two objects.
T
The type of objects to compare.