-
Notifications
You must be signed in to change notification settings - Fork 268
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
Sort flattened search result alphabetically #302
Comments
It preserves the tree order. Sorting them alphabetically could be done but the UX could become confusing. Doing it via option adds some complexity especially when you consider The next version should make it easier though as you'd be able to bring in your own renderer where you could effectively sort the tree before rendering. |
Hi there, @bill-zhongjie-li you can sort data and children before put it into component, it's not dificult. But I have another problem. @mrchief when I trying to search word 'test' and parent and child includes this word, then child move in the end. |
That shouldn't happen. Do you have a codesandbox that reproduces this? |
Of course, see my post above, or I'll just duplicate the link here https://codesandbox.io/s/react-dropdown-tree-select-ordi4 |
Oh, sorry for missing that. Thanks! I'll take a look. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions. |
In the case of searching the dropdown tree list, by default the search result is flattened. Can we sort the search result alphabetically, or provide an option to sort them alphabetically?
The text was updated successfully, but these errors were encountered: