The Sort Class contains the following methods:
compare is called when the sorting engine must compare two elements. swap is called when the sorting engine must swap two elements.