It is very simple. The game first filters out the ineligible rounds, rounds where the associated points have the wrong owner. The game then sorts the rounds based on the set priority. If there are multiple rounds with the same priority the game picks one of them at random.