fabianlindfors / multi.js

A user-friendly replacement for select boxes with the multiple attribute enabled
https://fabianlindfors.se/multijs
MIT License
953 stars 76 forks source link

preserve selected order #24

Closed raffaeletani closed 5 years ago

raffaeletani commented 5 years ago

Is there an option to preserve the order in wich the items are selected? right now it keeps the selected column ordered like the available column

fabianlindfors commented 5 years ago

Unfortunately, no. I've designed multi.js to stay very close to the underlying select element. The problem with this is that a regular select has no concept of which order the elements were selected. As a result it is not possible to preserve the selected order and it would be a bit of work to implement.

I'll keep your suggestion in mind though!

kalimu commented 5 years ago

This request has my vote for reconsidering :) This could help a lot when one would like to use some kind of ranks as an input. The UI is already there.