add sort functionality to addCategory()