Sort when add a category