Change sort to use role start and end values.