multiselect icon indicating copy to clipboard operation
multiselect copied to clipboard

Initial sorting of selected items

Open SteveX opened this issue 16 years ago • 2 comments

It would be good to be able to order the initially loaded selected items as they are ordered in the html rather than by alphabetical order.

SteveX avatar Jan 09 '10 16:01 SteveX

I now see this is possible using nodeComparator

SteveX avatar Jan 19 '10 14:01 SteveX

How you come with that? I still cannot make auto-sorting for selected items. I tried a code example from documentation but without luck :(

var ka = node1.data('multiselect.optionLink').val(),
    kb = node2.data('multiselect.optionLink').val();
return ka == kb ? 0 : (ka < kb ? -1 : 1);

somnium-vadim avatar Jan 28 '11 11:01 somnium-vadim