Use examples.Sample Outline 3. It is a list of vegetables in no particular order, but with one vegetable type having several entries in the list. Put the cursor on "summer squash." Notice that the three types of squash are out of alphabetical order.
Execute:
op.sort ()
» true
Observe that the three types of squash are now in alphabetical order. Unless you're an obsessive-compulsive and like to keep all your groceries alphabetized, of course, this isn't a momentous event, but it does illustrate how op.sort works.
Still using examples.Sample Outline 3, place the cursor on the first summit. Now execute:
op.sort ()
» true
Notice that the summit headings are sorted and that their subheads move with them but are not sorted within each subhead.