Skip to content

Add support for facets sorting (default by count)#222

Merged
phndiaye merged 2 commits intomasterfrom
pn/add-support-for-facets-sorting
Jan 10, 2025
Merged

Add support for facets sorting (default by count)#222
phndiaye merged 2 commits intomasterfrom
pn/add-support-for-facets-sorting

Conversation

@phndiaye
Copy link
Member

@phndiaye phndiaye commented Jan 9, 2025

What does this PR do?

Add support for facets sorting in the FacetsLoader component. By default, we will sort the facets by count while allowing support for a sortCompareFn arg that can be provided by the parent context to sort differently.

What are the observable changes?

🧑‍💻 Developer Heads Up

⚡ Since we are using Ember Octane now:

  • Feel free to migrate existing components to Glimmer Components.
  • Write new ones exclusively in it.

Useful Resource : Ember Octane vs Classic Cheat Sheet

Good PR checklist

  • Title makes sense
  • Is against the correct branch
  • Only addresses one issue
  • Properly assigned
  • Added/updated tests
  • Added/updated documentation
  • Migrated touched components to Glimmer Components
  • Properly labeled

Additional Notes

@phndiaye phndiaye requested a review from a team as a code owner January 9, 2025 09:57
@phndiaye phndiaye requested review from JulienVannier66, OwenCoogan and aprentout and removed request for a team January 9, 2025 09:57
@phndiaye phndiaye merged commit c5aedc1 into master Jan 10, 2025
3 checks passed
@phndiaye phndiaye deleted the pn/add-support-for-facets-sorting branch January 10, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments