Like many applications (Excel, for example), Mercury allows users to sort data. But sometimes you might want to sort not by the actual data-value, but some other way.
Example: Suppose the field Size contains text values (S, M, L, XL) that correspond to small, medium, large, and extra large. Sorting data by Size would result in an order of (L, M, S, XL) – probably not what you want.
A Sort in Mercury allows you to define a custom sort-order to handle situations like the above example. When you create (or edit) a report, you can associate a report field with your custom Sort. You can associate fields from different reports with the same Sort.
To open the Manage Sorts window:
Select the Tools > Tools ribbon at the upper right of the main Mercury window, and then click Sorts.
Refer to the list below to know more about the columns in the grid.
Define the list of possibilities (that is, the possible Expression results) in the detail area. The order of the Refer. Value ("reference value") items defines the ascending sort order. Depending on your Operator, you may not need a detail item for every distinct Expression result.
Control | Description |
Creates a new reference value for sorting | |
Deletes selected reference value | |
Moves the selected item up | |
Moves the selected item down |
Note: All the Sorts and their details will be editable, not just the selected one. You can also continue to add New ones.
Make changes as desired.
Click Save to save the edits. To discard all your changes, click Reset.
Select the Sort that you would like to clone and click Clone on the toolbar.
Your clone will appear at the end of the grid. The clone is identical to the original Sort except for the Name, which is blank.
Change anything else pertaining to the Sort and/or its details, as desired.
Note: All of the Sorts and their details can be edited, not just the new clone.
Note: This operation cannot be undone. If you want your deleted Sort back, you must create it again as described above.
To discard all unsaved changes (as part of New, Edit, and Clone), click Reset on the toolbar.
At the confirmation prompt, choose Yes to confirm; No to continue making changes.
To use a custom Sort in a report, you assign the sort to a specific field in a report. You can use the same Sort in multiple reports, and even multiple times in the same report. It's up to you to ensure that the Sort makes sense for the reports / fields to which it's assigned.
For details on how to assign a Sort to a report-field, see the documentation for Creating / Editing reports, and refer to the section on Fields.