fixed default sorting by department