Sorting List Items

A sorting operation can be performed on various types of lists and list items. Oxygen XML Developer plugin provides support for sorting the following types of lists:

  • Ordered list (ol)
  • Unordered list (ul)
  • Parameter list (parml)
  • Simple list (sl)
  • Required conditions (reqconds)
  • Supplies list (supplyli)
  • Spare parts list (sparesli)
  • Safety conditions (safety)
  • Definitions list (dl)

The sorting mechanism works on an entire list or on a selection of list items. To sort items in a list, select the items or list and use the Sort action from the main toolbar or the contextual menu. This opens the Sort dialog box.

Sorting List Items

This dialog box sets the range that is sorted and the sorting criteria. The range is automatically selected depending on whether you sort an entire list or only a selection of its items.

Note

When you invoke the sorting operation over an entire list, the Selected rows option is disabled.

The Criteria section specifies the sorting criteria, defined by the following:

  • The name of the type of item being sorted.
  • The type of the information that is sorted. You can choose between the following:
    • Text - Alphanumeric characters.
    • Numeric - Regular integer or floating point numbers are accepted.
    • Date - Default date and time formats from the local OS are accepted (such as short, medium, long, full, xs:date, and xs:dateTime).
  • The sorting direction (either ascending or descending).

After you finish configuring the options in the Sort dialog box, click OK to complete the sorting operation. If you want to revert to the initial order of your content, press Ctrl + Z (Command + Z on OS X) on your keyboard.

Note

The sorting support takes the value of the xml:lang attribute into account and sorts the content in a natural order.

Was this helpful?