Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 46885

Use it for the Drupal core module or any module extending its functionality, or aiming to replace it.

0 votes
1 answer
447 views

Change sort order based on facet selection

My view displays Webinars, I use facets to choose between upcoming and archived. The default sort order is ASC, which is fine for upcoming dates, but if you select the archived facet, I need the sort …
Sam T's user avatar
  • 141
1 vote
Accepted

Change sort order based on facet selection

This is how i solved the problem in the end, i checked the current path using request_path() and if it matched my facet url, then use the search_api_query_alter hook to reverse the sort order: functi …
Sam T's user avatar
  • 141