public void setToSorted(int src, int dest) {
    sortedTimestamps[dest / ARRAY_SIZE][dest % ARRAY_SIZE] = tvList.getTime(src);
    sortedIndices[dest / ARRAY_SIZE][dest % ARRAY_SIZE] = tvList.getValueIndex(src);
  }
the same as the 'set' function in TVList, the reason is to avoid two equal functions.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TimSort.java