boston-library / commonwealth-vlr-engine

Commonwealth-VLR-Engine is a Rails engine for creating Blacklight apps that provide access to content from Solr/Fedora, packaging a number of feature-rich enhancements and modifications.
Apache License 2.0
8 stars 2 forks source link

A-Z sort of Formats facet incorrect #117

Open ebenenglish opened 10 months ago

ebenenglish commented 10 months ago

When I am on the Formats page (catalog#formats_facet) And I click on the A-Z sort button The results should be sorted correctly by alpha So the results match what any user would expect

This is caused because Solr is (correctly) sorting the source data values, rather than the display values, which are modified by CommonwealthVlrEngine::ApplicationHelper#render_format.

Since the formats list is finite and we know what all the links are, we could refactor this page to use the default Solr response but render the facet values more deliberately in the desired order.