fix sorting in main category list