Documents - List Sort Fields

The documents-list-sort-fields key defines the sorting options that are available in the Sort Fields selector on the documents browsing page.

To populate the documents-list-sort-fields section, your configuration snippet should look like this:

    "documents-list-sort-fields": {
        "items": []

Example - Add a new Sort Field

We can add a new sort field with a configuration block like this. This adds an option to sort by category.

    "documents-list-sort-fields": [{
        "key": "category",
        "title": "Category",
        "field": "category"