Sorts a list according to the Compare function or by less than value for the parameterless version.
void sort(); template <class Compare> void sort(Compare comp);
The list class provides a swapping function.