I have a taxonomy term reference field on a node. On the "node/add" page I would like to sort the terms by "due date" (a field added to that vocabulary).

  • 3
    Taxonomy terms are entities, could you use the Entity Reference module with a view as the widget? Then you could use a view to order the terms by the custom field
    – Clive
    Oct 20, 2012 at 0:20
  • didn't know ER can do that. Do I need to use drupal.org/project/entityreference_view_widget?
    – uwe
    Oct 20, 2012 at 1:23
  • 1
    You can do if you want a more advanced widget, but if you just need a dropdown you can use the built in views integration. Just create a view with an Entity Reference display, then use the Views: Filter by entity reference view mode when you're configuring the field
    – Clive
    Oct 20, 2012 at 10:28

2 Answers 2


If you're stuck using a term reference field, here are some widget options:


I had succsefull manage this by this module, Views Term Hierarchy Weight Field, just add (hidden) Hierarchical weight field, then, on sort settings, sort by this new field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.