Skip to content

Sorting

Root lists, search results and list/table components can be configured to be sortable. Only list/table components are sortable on the web. To enable column based sorting, you can specify all or specific columns that can be sorted.

REMARKS: All columns which are configured as sortable need to be in the lists attributes array.

Performance

Because list sorting is done on the client it has to fetch all data from the backend before it is sorted. This will ignore pagination and has a huge impact on performance depending on the amount of records. Lists with a large amount of records should not be made sortable!

Search Results

In online mode search results are sorted by Elasticsearch. This feature is only available for Elasticsearch in Version 7 or newer. Older Versions do NOT have a sorting for online search results.

Example

{
  "list": {
    "attributes": [ ... ],
    "sort": {
      "attributes": true
    }
  }
}
{
  "list": {
    "attributes": [ ... ],
    "sort": {
      "attributes": [
        "MESSAGE",
        "REPORTDATE"
      ]
    }
  }
}