Transcription: When the type of the items being sorted changes, the nature of the comparison operation may change. In C++, an overloaded comparison operator can be provided by the implementation of the data type. Therefore, the sort can be written as a template that can be applied to any suitably defined type.