Solution for ascending order in a category

Solution for ascending order in a category