$searchresults_sort
variable
- $searchresults_sort
type
- behavioral
associated template variable
description
This variable specifies the sorting order of articles when multiple articles appear in search results. Use the name of the element within the article node of the site.xml file optionally followed by DESC
representing descending (reverse) ordering. If DESC
is omitted, the sort will be ascending, that is, most recent articles first.
examples
$searchresults_sort:article_edited DESC
$searchresults_sort:article_updated DESC