How to Change Search Results Sorting Options

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000024824

Navigate to MY CONTENT > EDIT POST SETTINGS and click on "Edit" for the post type in which the sorting order will be changed:




Move to the Search Results Design tab:




Scroll down and expand the Additional Settings and open up the "Order Results By":



Sort Order Options

Customizing the sort order for member and post type search results can be found in the Post Settings in the admin dashboard. The available sorting options depend on whether the results are listings/profiles or member-published posts.


Member Listings

  • Member Name A-Z 
  • Member Name Z-A
  • Member/Post ID (Oldest First)
  • Member/Post ID (Newest First)
  • Sort by Last Name A-Z (If no last name is present, it will use the company name as the last name)
  • Sort by Last Name Z-A (If no last name is present, it will use the company name as the last name)
  • Number of Reviews
  • Random Order*


Member Posts

  • Date Posted (Earliest Date Last)
  • Date Posted (Earliest Date First)
  • Start Date (Earliest Date Last) - If Applicable
  • Start Date (Earliest Date First) - If Applicable
  • End Date (Earliest Date Last) - If Applicable
  • End Date (Earliest Date First) - If Applicable
  • Post ID (Smallest to Largest)
  • Post ID (Largest to Smallest)
  • Post Title A - Z
  • Post Title Z - A 
  • Advanced - Edit in Search Widget
  • Random Order*


Selecting Random Order

When users select "Random", it is important to note that the randomization will be applied per browser session page refresh. 


This implies that continuing to pages 2, 3, and so forth will maintain the same browser session, thus displaying identical results even upon revisiting these pages. The results will only vary upon returning to search results page 1, and refreshing the browser session, presenting fresh random results.


The Random option will apply to all types of searches except radius-based location searches, which always order by distance from the searched location.


Searching by category, keyword or nothing will have random results.


Membership Plan “Search Priority”

Additionally, the setting "When Sorting Members - Respect Membership Plan “Search Priority” will respect the "Search Results Priority" logic based on the Membership Plan settings.



Location Searches & Sort Order


When doing a radius-type location search (cities and zip codes by default) it will return members in order of distance from the searched location.



Selecting any of the front-end options will override the distance and results will be returned based on the chosen filter:



Search Results Sort Order Options 

Whenever a search is conducted, the results are automatically filtered and sorted according to the selected option. Additionally, members and visitors can choose their preferred sorting option directly from the front end of the website.


There are 6 available filters on the front end:

  • Sort Results
  • Sort by Most Reviews
  • Sort by Name A-Z
  • Sort by Name Z-A
  • Sort By Last Name A-Z
  • Sort By Last Name Z-A



Sort Order Text Labels

If the admin does not want one of the available sort options to show on the front end, the corresponding Text Label needs to be left blank by deleting the text:



These are the text labels that can be edited or deleted:

  • Label Name: Default sort label

System Variable: default_sort_label

  • Label Name: Most reviews sort label

System Variable: most_reviews_sort_label

  • Label Name: Az sort label

System Variable: az_sort_label

  • Label Name: Za sort label

System Variable: za_sort_label


Please refer to this article to learn more about text labels: Settings » Text Labels

In this example, after deleting the text labels for "Sort by Name/Last Name", these options no longer shows in the front end of the site:




Important Note

  • At this time, the ability to compare members in search results on the front end is not available.