op.sort
| Syntax |
op.sort ()
|
| Params |
None required
|
| Action |
Rearranges the current heading and its siblings in alphabetical order.
|
| Returns |
True
|
| Examples |
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 ()
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.
Notice that the summit headings are sorted and that their subheads move with them but are not sorted within each subhead. |
| Notes |
The op.sort verb uses the conventional ASCII sort sequence unless a different sequence has been defined at the system level of your computer. This verb sorts only headings at the level of the current heading in the outline; it does not affect subheads or headings that are higher in the outline hierarchy.
|