shifts page now properly sorting by department