Sorting shifts of person