The chosen multiple select result outputs always in ascending order of the array, regardless of the selected order. I couldn't find information related to ordering in the JHtml attribute array.
I need the output to sort as selected by the user. example:
<select id="items" name="items" size="2" multiple> <option value="tomato">Tomato</option> <option value="meat">Meat</option> <option value="cheese">Cheese</option> </select>
When the values output using the following method
The returned order is tomato,meat,cheese though cheese was selected first.
Is there an ordering parameter available, similar to the following example which will return the output in the order of selection?
JHtml::_('formbehavior.chosen', 'select', null, ['set_order' => 'order']);