Sort the Query Results

For any query, you can define criteria to determine how the results will be sorted by default.

Steps

  1. For the query whose results you want to sort, access the Design workspace.
  2. In the Conditions section, in the Sort cell for the field that you want to sort, select Ascending or Descending.

    Note: By default, the Sort Index cell for the first field that you sort displays a 1, indicating that this field will be used as the primary sort value.

  3. If you want to set a secondary sort value, in the Sort cell of the appropriate field, select Ascending or Descending.

    Note: By default, the Sort Index cell for the second field that you sort displays a 2, indicating that this field will be used as the secondary sort value.

  4. Repeat these steps until you have defined all the sort values you want.

    After you run the query, the columns for which you defined a sorting preference will be sorted in the specific order.

Copyright © 2018 General Electric Company. All rights reserved.