add sort() variation to accept a Comparator
polish groupBy test