Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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 OwenCoogan, JulienVannier66 and aprentout and removed request for a team January 9, 2025 09:57
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