A comparison operation

The programmer might define one of the allowable operations for the new type to be:

This operation could be used to sort the set of objects representing all of the employees into alphabetic order.

The set of sorted objects could then be used to print a new telephone book.