You go by order of lands to Gather in to. As usual, they can come from any adjacent land, including on another board.
The primary motivation for this rule is speed of play – if it's not in a deterministic order, it usually doesn't matter much, but occasionally it really does, and searching for those cases and choosing the precise ordering of lands can slow the whole process down.