They are now delivered sorted by 'pos', and the template sorting was
ascii-betical anyway, which is incorrect.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
[% IF none_ok %]
<option value=''>[% none_label ? none_label : l('-- Any --') %]</option>
[% END;
-# turn the list of objects into a list of hashes to
-# leverage TT's array.sort('<hashkey>') behavior
-sorter = [];
-FOR o IN group.entries;
- sorter.push({id => o.id, label => o.query.label, pos => o.pos});
-END;
-FOR o IN sorter.sort('pos') %]
- <option value='[% o.id %]'[% values.grep(o.id).size ? ' selected="selected"' : '' %]>[% o.label | html %]</option>
+
+FOR o IN group.entries %]
+ <option value='[% o.id %]'[% values.grep(o.id).size ? ' selected="selected"' : '' %]>[% o.query.label | html %]</option>
[% END -%]
</select>