add sort to department and the user