fix change sort order of partitions without explicit partition number