This is branching from this post in a different thread where @kderbyshire notes:
At first encounter it might seem odd that Outline order ($OutlineOrder) doesn’t seem to reflect the Map view. But, pause to consider. If I move a note on the map, which direction(s) of movement should affect the outline. there isn’t an obvious answer, which is why map position ($Xpos and $Ypos) don’t affect outline order.
However, the stacking order of the map, the Z-plane (i.e. which overlaps in front/behind another note) does follow outline order.
In our mind’s eye we may imagine a left-to-right-order in our map or an order flowing allow a set of linked notes, but the app can’t see that. If you need the outline to reflect your abstract order on the map, I’d suggest adding a user Number-type attribute (or use $MyNumber) to record the sequence, then set the sort† of the map’s container to sort on that value.
†. Yet another good reason not to make a long-term, meaningful map at root level, i.e. the map you see on starting a new doc. Better, make a note on that map that is the container of your map to be, drill down and start adding your data there. It also avoids things like a Prototypes
or Templates
container appearing in your map.
For more detail on ‘order’ in map vs. outline, i’ve written a set of notes here.