Make category filtering and sorting criterion orthogonal.