add sorting based on parent category on index