Brilliant module however my only issue is that when I add more than one selection (via 'Edit' tab, 'Number of Values') the selections (when added) appear in an Alphabetical order and not in the order they were added. This causes some bother on our systems as there are quite a few items that are added and need to be in a preferential order. Hence if a feature could be added whereby it asks how you would like your items ordered this would be great.

Comments

enatheabducr’s picture

Hi there.
I'm having the same problem. I want to be able to select the order of the items in views instead of the default. I have a view of a content type grouped by a content's type term reference field.
I'm a beginner in drupal. I've tried using the views_pre_render hook and views_views_data_alter. Right now I'm creating my own handler. This is some kind of difficult to me since I can't seem to find the right documentation to do it. I've tried using lots of pieces of code to accomplish this. Can you tell me what is the easiest way? I think it would be great since this is just a feature request.

Thanks a lot.

enatheabducr’s picture

I've found the solution searching in old issues here https://drupal.org/node/466828.

All I wanted is to sort the output of the grouped by result in a view. The solution I used was commenting out the nex line in hierarchical_select.module

usort($dropbox->lineages, '_hierarchical_select_dropbox_sort');

Then I ordered the terms list in the vocabulary I use in the list, after that sorted the view by the product field I was using as fields.

wim leers’s picture

Status: Active » Closed (works as designed)

Taxonomy fields don't store order, so this is impossible to guarantee, especially when using vocabularies where terms have multiple parents.