Studying a little about STL I came across the std::sort
function that can receive a comparison function.
template< class RandomIt, class Compare >
void sort( RandomIt first, RandomIt last, Compare comp );
How does this comparison function work? And how is it used?