Set Sorting in the Administration Console
- Go to Search > Search Logics > Sort & Relevance > Sort
- Click to add as many sort clauses as required.
-
For each clause, you must specify:
- a Name
- a virtual Expression - click Edit
and specify the expression with the Expression Builder. It can
be the name of an index field only or a more complex virtual field expression.
For example, if you want the sort to be in lowercase, use the
#strlower
function, to make an expression like#strlower(myAlphanumField1)
. If you want the sort to be normalized (that is, lowercase and unaccentuated), use the#strnormalize
function, to make an expression like#strnormalize(myAlphanumField2)
. - A Sort order (ascending/descending).
- And if the sort clause is Active, so that it is executed.