vue-multiselect icon indicating copy to clipboard operation
vue-multiselect copied to clipboard

Rationale behind sorting filtered options

Open thomaspaillot opened this issue 10 months ago • 2 comments

https://github.com/shentao/vue-multiselect/blob/f424a49bebfb8368e53bb35428ffa30d11ae8967/src/multiselectMixin.js#L20-L24

I would like to understand the rationale behind the sort mechanism of the filtered options. As I understand it, it is sorted by the option label length, it seems to me that this is quite an opiniated choice that will not produce good result in every cases. Would you be willing to introduce a new prop to provide a custom sort function or to remove the sort?

thomaspaillot avatar Apr 10 '24 11:04 thomaspaillot