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