When you have overlapping map layers that have popups, there is a bar at the top that allows you to toggle to the next layer.
But there is no way to control the order of which popup is displayed first. Please give control to this, or make popup come up in the same order as the legend.