public static void descSortByVersionId(File[] checkpointFiles) {
    Arrays.sort(
        checkpointFiles,
        Comparator.comparingInt(file -> parseVersionId(((File) file).getName())).reversed());
  }
Sort checkpoint files by version id with descending order.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/utils/CheckpointFileUtils.java