Hello, the menu options to select parent are sorted on NID and not on title, resulting in a difficult to use menu selector.

Suggest adding one line of code to:

nodehierachy.module

// Sort options:
  sort  ($element['#options']);

To line 1504.

Comments

emok’s picture

I came across this earlier, but wanted to have the parent options sorted as the menu items are in the actual menu, thus by weight within each level (within each parent) rather than by title.

I have made a patch against 6.x-2.x-dev downloaded January 4, 2011 (but the last code change was November 25, 2010) which accomplishes this. I know patches should be made from the current version but since I am using other personal patches too I have not upgraded to 6.x-3.x-dev. Feel free to ignore it if it doesn't apply to the latest version.