From 23de3297bbd74980a2f6da326acc5da63ddef2fe Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Wed, 3 Feb 2021 11:24:46 +0100 Subject: Add a default_sort option to collections --- docs/source/user/settings.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/source/user/settings.rst b/docs/source/user/settings.rst index 0d2eec9..7c84e39 100644 --- a/docs/source/user/settings.rst +++ b/docs/source/user/settings.rst @@ -16,6 +16,10 @@ It is a yaml file with a dict of properties and their values. a jinja2 template used to show an entry in the interface; beside the entry fields two useful variables are ``eid`` for the full entry ID and ``short_id`` for the short version. +``default_sort``: + a list of field names (possibly prefixed by + or -) that are used by + default to sort results of searches in the collection. + The fields must be marked as sortable in their definition, see below. ``fields``: The list of fields used by the collection, as described below. -- cgit v1.2.3