Fixed sorting of category list