In examples.Sample Outline 1, position the cursor at "Subhead 1, Summit 2" and then execute:
op.reorg (down, 1)
» true
Notice that the heading moves down one position and maintains its level setting.
In examples.Sample Outline 1, position the cursor at "Subhead 3, Summit 2" and then execute:
op.reorg (down, 1)
» true
Notice that the subhead and its subheads all move down the outline hierarchy below "Subhead 4, Summit 2."
In Examples.Sample Outline 2, put the cursor on Subhead 1.1.1.1.1 and then execute:
op.reorg (left, 33)
» true
Notice that the heading now appears as a new Summit. Only two levels of move were possible before we ran into an outline constraint, but the function returned true nonetheless.
In examples.Sample Outline 2, position the cursor at "Subhead 1.1.1.1.1" and then execute:
op.reorg (right, 1)
» false
Nothing happens because this heading cannot be moved farther to the right than it already is.