Fix sorting of category catalogue