Support alpha:desc option in sortFacetValuesBy #854
                  
                    
                      balbesqueen
                    
                  
                
                  started this conversation in
                Feedback & Feature Proposal
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Allow
sortFacetValuesByto acceptalpha:descto enable reverse alphabetical sorting of facet values.This is especially useful when facet values are chronological (e.g. years, versions), where it's desirable to show the most recent values first.
Basic example
When indexing a list of media items or articles with a
yearfacet, we currently get:2020,2021,2022,2023,2024But often we'd prefer to display:
2024,2023,2022,2021,2020This could be achieved with:
{ "sortFacetValuesBy": { "year": "alpha:desc" } }Beta Was this translation helpful? Give feedback.
All reactions