Made toComparator(Ord) public api