CMS Drupal Mastering Development

Change sort order for view when exposed filter text field submitted

I have a view that by default is ordered by date. It has several exposed filters one of which is for filtering by text (we use it as a search field). I’d like the view sort to change to Relevance when a user submits a search but I also want to set it so it only does this once in case the user changes the sort order and then modified their search string. Is this possible? I’m using Better Exposed Filters, fwiw.

Leave a Reply

Your email address will not be published. Required fields are marked *