fixed the department sort