Index: taxonomy_breadcrumb.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_breadcrumb/taxonomy_breadcrumb.inc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 taxonomy_breadcrumb.inc
--- taxonomy_breadcrumb.inc	13 Mar 2009 16:46:03 -0000	1.1.2.1
+++ taxonomy_breadcrumb.inc	1 Apr 2009 20:56:04 -0000
@@ -36,7 +36,7 @@ function _taxonomy_breadcrumb_node_get_l
   // We only want the first row of the result--this is the lightest term of the
   // lightest vocab.  This query should be the same as the query found in
   // taxonomy_node_get_terms.
-  $result = db_query(db_rewrite_sql('SELECT t.* FROM {term_node} r INNER JOIN {term_data} t ON r.tid = t.tid INNER JOIN {vocabulary} v ON t.vid = v.vid WHERE r.nid = %d ORDER BY v.weight, t.weight, t.name', 't', 'tid'), $nid);
+  $result = db_query(db_rewrite_sql('SELECT t.* FROM {term_node} r INNER JOIN {term_data} t ON r.tid = t.tid INNER JOIN {term_hierarchy} h ON t.tid = h.tid INNER JOIN {vocabulary} v ON t.vid = v.vid WHERE r.nid = %d ORDER BY h.parent DESC, v.weight, t.weight, t.name', 't', 'tid'), $nid);
   $term = db_fetch_object($result);  // extract first row of query
   return $term;
 }
