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.

Files: 
CommentFileSizeAuthor
#2 1339136-entityreference-sort.patch3.88 KBDamien Tournoud
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1339136-entityreference-sort.patch. This may be a -p0 (old style) patch, which is no longer supported by the testbots.
[ View ]

Comments

amateescu’s picture

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

Status:Closed (duplicate)» Needs review
StatusFileSize
new3.88 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1339136-entityreference-sort.patch. This may be a -p0 (old style) patch, which is no longer supported by the testbots.
[ View ]

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.