sort custom partitions array