Added sort functionality for the server side.also added create category on enter funcitonality.