You can sort the data, but any sort criteria you define are for testing only and are not saved with the table or passed to the DataWindow painter.
Figure 16-11: Specifying sort criteria in the Database painter
The order in which the columns display in the Columns box determines the precedence of the sorting. For example, in the preceding dialog box, rows will be sorted by department ID. Within department ID, rows will be sorted by state.
To sort the rows:
Select Rows>Sort from the menu bar.
The Specify Sort Columns dialog box displays.
Drag the columns you want to sort on from the Source Data box to the Columns box:
A check box with a check mark in it displays under the Ascending heading to indicate that the values will be sorted in ascending order. To sort in descending order, clear the check box.
Change the sort order precedence by dragging the column names in the Column box to achieve the sort order you want.
(Optional) Double-click an item in the Columns box to specify an expression to sort on.
The Modify Expression dialog box displays.
Specify the expression.
For example, if you have two columns, Revenues and Expenses,
you can sort on the expression Revenues – Expenses
.
Click OK.
You return to the Specify Sort Columns dialog with the expression displayed.
When you have specified all the sort columns and expressions, click OK.