ng-select icon indicating copy to clipboard operation
ng-select copied to clipboard

Allow control over selection ordering

Open benelliott opened this issue 7 years ago • 3 comments

Because of how selections are managed internally in the library (setting a selected attribute on the list of options and then filtering this list) there is no way to manage how selections are ordered when they appear to the user (as far as I know?).

This means that a user's selection will always appear in the same order that the selections appear in the options list. It may be more intuitive to instead allow selections to be ordered by the order in which they were actually selected.

You can see an example of what I mean in the multiple selection example on the demo page. If you select items in the order Daito, Art3mis, Aech then they will still appear in the "options" order in the input. Some users may find this surprising, especially when you have a lot of selections.

benelliott avatar Mar 02 '17 15:03 benelliott

Has anyone found a workaround for this?

SachinSharmaEarthport avatar Apr 05 '17 12:04 SachinSharmaEarthport

Thanks for reporting @benelliott. I agree that this might not always be intuitive, but for now I stick to the current ordering, which is the same as that used by the select2 jQuery plugin.

For me this doesn't have high priority, I will put it on the list of improvements for later releases.

basvandenberg avatar Jun 03 '17 11:06 basvandenberg

Hi, thanks for the support. Is there a realease date for this feature?

Here is an example component wich have this behaivour

https://ng-select.github.io/ng-select#/multiselect

javiervillar avatar Jun 06 '18 23:06 javiervillar