What must
you do to sort your custom classes? This demonstration
project shows one technique which is to implement the IComparable interface in your classes.
The Microsoft.Net
ICompare interface type defines a generalized comparison
method that a value type or class implements to create a
type-specific comparison method.
A value type or
class implements the
CompareTo method to create a type-specific
comparison method suitable for purposes such as sorting.