Skip to main content

Get help for ARIS Process Mining functions and services

Change the sort order using a textual editor

You can define a sort order using a textual editor. The textual editor allows you to define a dynamic sort order using variables.

Procedure. Procedure
  1. Open the dialog to define a sort order.

  2. Click the Code view icon to open the code editor.

    Define sorting
  3. Click in the first line of the editor and press Ctrl + Space. A box with the available elements opens. Select the required elements in the box. The editor provides only the SORT operation, sorting types ASC (ascending) and DESC (descending), criteria identifiers, and variables (if available).

    Define sorting
  4. You can add multiple sort order definitions in the following format. Multiple definitions are separated by commas (,).

    SORT("field", "sortDirection")
    
  5. Replace field with a criterion identifier. You can use only the identifiers of the criteria assigned to the component.

    You can find the identifier on the configuration panel of the corresponding criterion. Select the criterion in the drop-down menu in the Configuration panel, for example, Activity name. You can edit the criteria identifiers and specify your own identifiers, for example, a name. An identifier must be unique. Then you can use the specified criteria identifiers in the sorting definition.

  6. Replace "sortDirection" with ASC (ascending) or DESC (descending).

  7. You can use variables instead of criteria identifiers, and sorting types. Variables are referred as follows: ${variable name}.

  8. Press Enter to add a new line and specify an addition sorting definition if required.

  9. Click Apply.

You created a custom sorting definition.

Example 21.

The sorting definition contained a default criterion identifier in the first line, a user-defined criterion identifier (custom ID) in the second line, and a variable instead of the criterion identifier in the last line.

Sorting definition