Refactor: Extract sorting tests to own class
Implement optional comparator to max()
Implement optional comparator to min()