adding support for sorting and sub sets of catalog partitions