public static SortOrder copySortOrderSpec(SortOrder sortOrder, Schema copySchema) {
    SortOrder.Builder builder = SortOrder.builderFor(copySchema);
    sortOrder
        .fields()
        .forEach(
            sortField -> {
              builder.addSortField(
                  sortField.transform(),
                  sortField.sourceId(),
                  sortField.direction(),
                  sortField.nullOrder());
            });
    return builder.build();
  }
Copy an new sort order spec depend on an new schema, new schema should contain the same fields
sort order spec need.

@param sortOrder sort order spec to be copied
@param copySchema schema new partition spec depend on
@return the new partition spec
amoro-format-mixed/amoro-mixed-hive/src/main/java/org/apache/iceberg/IcebergSchemaUtil.java