There is currently no way of controlling the sorting order of date facets blocks. Default is chronological order, but some site might want to promote some content from most recent to older.

Comments

scor’s picture

Status: Active » Needs review
StatusFileSize
new3.49 KB

first try. This patch leaves the active facets on top of the inactive facets, which are sorted accordingly. Not sure if this is the best approach.

Also, not sure the date facets block support "Sort active facet links above inactive facets" although it's there in the block settings form (OT).

pwolanin’s picture

Project: Apache Solr Search » Facet API
Status: Needs review » Needs work

Might already be available? In any case, the code is here now.

cpliakas’s picture

Status: Needs work » Fixed
StatusFileSize
new74.48 KB

Facet API allows for sorting of all facets via the GUI, so this satisfies the use case in this post. The next release of Apache Solr will leverage Facet API, so marking the issue as fixed. See the attached screenshot for an example of what the UI provides regarding sorting.

Thanks,
Chris

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.