Direction modifiers connects to the bottom left connector of the Path node. Each next node is connected to the bottom connector of the previous modifier node. These nodes are calculated in the same sequence.
If you need to swap the nodes, you can right-click on the modifier node and select the Move Up or Move Down menu items:
As a result, the nodes will be swapped, and their connections will be reconnected accordingly.