sort on "field" for noderef field in guided search block sorts on nid instead of "title"

catorghans - June 18, 2009 - 13:19
Project:CCK Facets
Version:5.x-1.0-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I have a nodereference field called "Action".

If I set the "Sort criteria" on "Action" for that field it is not sorted on the referencing node title, but on it's node id.
Which simply does not make sense.

#1

catorghans - June 18, 2009 - 13:44

If I add this to class reference_facet in reference_facets.module

  function build_sort_query_field(&$query) {
    $query->add_orderby("n.title", 'ASC');
  }

Then it works for node references. Cannot oversee "user references".

 
 

Drupal is a registered trademark of Dries Buytaert.