multiselect Sorting not working when only plus button is used

multiselect Sorting not working when only plus button is used

Hi,

When i only select the elemenst by using the plus(+) button, my list is not sorted by the way i clicked them when i POST it using a form.

For example, my list is:
A
B
C
D



I click plus on the D and then A. The selected list is now:
D
A.

But if i go post this onto another page via a web form my list goes back to original placement like this:
A
D
instead of
D
A
as i selected.





However if i play with them up or down, by dragging them, it works.

$.widget("ui.multiselect", { options: {

 sortable: true, searchable: true, animated: 'fast', show: 'slideDown', hide: 'slideUp', dividerLocation: 0.6, nodeComparator: function(node1,node2) { var text1 = node1.text(), text2 = node2.text(); return text1 == text2 ? 0 : (text1 < text2 ? -1 : 1); } } 

 Is there any workaround on this?

Thanks