C# IComparable interface The IComparable interface defines a generalized type-specific comparison method that a value type or class implements to order or sort its instances . The IComparable is implemented by types whose values can be ordered or sorted. The interface requires the CompareTo method to be implemented.