The order of pickup depends on the priority that is assigned to these associated pickup groups.
Within the same group, the longest alerting call (longest ringing time) gets picked up first if multiple incoming calls occur in that group.