public void sortMeasurement(Comparator<Binary> comparator) {
    measurementList.sort(
        Comparator.comparing(s -> new Binary(s, TSFileConfig.STRING_CHARSET), comparator));
    schemaList.sort(
        Comparator.comparing(
            iMeasurementSchema ->
                new Binary(iMeasurementSchema.getMeasurementName(), TSFileConfig.STRING_CHARSET),
            comparator));
  }
This method is used by last read. Comparator<Binary> and Comparator<String> behaves differently
and that is why we use Comparator<Binary> here.

@param comparator
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/AlignedPath.java