Creates a function that returns the last element after sorting the iterable.
The comparator function to use for sorting
A function that takes an iterable and returns its last element after sorting
Creates a function that returns the last element after sorting the iterable.