Filtering and orderBy for partitions.