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 method to sort groups #643

Open
phlogios opened this issue Nov 3, 2023 · 0 comments
Open

Add method to sort groups #643

phlogios opened this issue Nov 3, 2023 · 0 comments

Comments

@phlogios
Copy link

phlogios commented Nov 3, 2023

I have two groups: 'Items' and 'My items'.

const groupBy = (item) => item.user_id ? 'My items' : 'Items';

<Select items={searchItems} label="name" {groupBy}>
</Select>

No matter how I sort my items, the 'Items' group will always be on the top, and I want it the other way around. I suggest exposing a method for sorting the set of groups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant