private void sortAndDeduplicateValuesAndBitMapsWithTimestamp() {
    tablet.setTimestamps(
        (long[])
            reorderValueListAndBitMap(tablet.getTimestamps(), TSDataType.TIMESTAMP, null, null));
    sortAndMayDeduplicateValuesAndBitMaps();
    tablet.setRowSize(deDuplicatedSize);
  }
For the sorting and deduplication needs of the table model tablet, it is done according to the
{@link IDeviceID}. For sorting, it is necessary to sort the {@link IDeviceID} first, and then
sort by time. Deduplication is to remove the same timestamp in the same {@link IDeviceID}, and
the same timestamp in different {@link IDeviceID} will not be processed.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/connector/util/sorter/PipeTableModelTabletEventSorter.java