I have a long list of Child Nodes (Surnames) - when attaching these from a Parent Node (Researcher), I notice that the list is sorted by nid instead of by the title of the Child Node. Would make a big difference in my users lives if I could get a patch on this.

Much Thx, Paul

CommentFileSizeAuthor
#1 patch_1211.07 KBdarius

Comments

darius’s picture

Version: 4.7.x-1.x-dev » master
Status: Active » Fixed
StatusFileSize
new1.07 KB

Sure, I think it makes sense to sort by title, rather than id. For the future, here is a comment from the code by the original author of the module (Mark Howell):

/**
 * Lists nodes that could be attached to a given parent type.
 *
 * TODO:
 *   Alter this code so that node_access("view",$child) logic is impelemented in the SQL statement.
 *   Use pager_query to process the results.  Maybe even have a sortable table
 *   with various filters for restricting what is seen.  Someday, maybe :)
 */
function relativity_list_possible_children($type='', $parent_nid='') {

Patch committed to the latest CVS HEAD.

PaulMare’s picture

Thx, much appreciated!!

Anonymous’s picture

Status: Fixed » Closed (fixed)