Defining sorts

Use sorts to control the order of objects in modules.

About this task

By default, objects are arranged according to the object hierarchy, like sections in a book. First there is section 1, and then section 2, and so on. Section 1 is subdivided first into section 1.1, and then section 1.2, and so on.

To arrange your data in a different way, you can use the value of attributes to sort your data. For example, you can sort on the Priority attribute to arrange objects in order of either ascending or descending priority. Or you can sort first on the Priority attribute, and then on the Risk attribute. When two objects have the same priority, they are sorted in risk order.

Note: Tables are ignored when you sort. When sorting is turned on, you see >> Table instead of a table. Sorting only affects the module window. The module explorer always shows the object hierarchy.

Procedure

  1. In the module window, click Tools > Sort. The Sort List shows currently applied sorts. You can add new sorts, and you can remove existing sorts.
  2. Define the sort:
    1. In Sort on, select the attribute you want to sort on.
    2. In Order, select the order you want to sort in.
    3. Click Add to add the sort to the sort list.
    Sorts are applied in the order that they are listed. To move a sort, select it and click Up or Down.
  3. To keep the Sort window open when the sort is applied, click Apply. To apply the sort and close the Sort window, click OK.

What to do next

To turn the sort off and on, click View > Show > Sort. Turning on the sort shows the results of the last sort, it does not reapply the sort.

To reapply the sort, click Tools > Sort. Click Apply or OK. in the Sort window.


Feedback