macvtunUsually when multiple WAN ports are configured and no static route is set, what determines the default gateway?

If you do not set the metric, it seems that there will be only one default gateway in the routing table.
Is this usually determined by the order of the interfaces in the configuration file/etc/config/network?
If I want the gateway of a WAN port to be the default gateway, should I manually edit the order of the interfaces in the configuration file?