Order By

Order By is an optional clause that sorts and displays the selected column's data in ascending or descending order for a SELECT statement. For example, you can sort the employee number column of an object in ascending order and salary column in descending order for an employee table.

Follow these steps:

  1. Click on the Order By pane.

    The Order By section appears.

  2. Select one or more columns from the Available Columns list.
  3. Move the selected columns to the Selected Columns list using Add> button.
  4. Arrange the selected columns in an order using the Move up and Move down buttons.
  5. Select a column name from the Selected Columns list and select ASC for ascending or DESC for descending order.

    Repeat this step for all the selected columns.

After specifying the Column Selection, Where Clause and Order By criteria click OK.

The object data which satisfies the specified Layout-Filter criteria is loaded to the Data Window.