Added new Sorting functionality and subcategories