Currently, the entity reference module only displays the available options in the multivalue select widget in the order they were created. Once you start adding a lot of node options to the select field, this becomes unmanageable. Being able to sort by the node title would make life much easier. Even if it changed the only sort method from creation date to title, that would be a huge improvement

Module is still awesome without this sort. Just figured a quick line of code might make things easier for some.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amateescu’s picture

Status: Active » Closed (duplicate)
Damien Tournoud’s picture

Status: Closed (duplicate) » Needs review
FileSize
3.88 KB

Actually, we could implement this without Views.

Proposed patch attached. Testing welcome.

amateescu’s picture

Status: Needs review » Reviewed & tested by the community

Tested this and it works very well :)

Rick Hood’s picture

Also confirming this patch worked for me. Thank you!

Damien Tournoud’s picture

Status: Reviewed & tested by the community » Fixed

Ok, then. Thanks for testing! Merged into 7.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.