WIP: consider registration index in byPriority comparator