Closed (won't fix)
Project:
Content Taxonomy
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Aug 2007 at 13:42 UTC
Updated:
1 Sep 2010 at 08:55 UTC
When you have multiple terms in one single field, the weight field is taken into consideration. If all weights are the same, sorting should be by name...
I have created some piece of code...
in content_taxonomy_field_formatter()
just after
if (!is_array($item)) {
return '';
}
and before
if ($field['terms_as_links'] || $formatter == 'link') {
Place this sorting code:
foreach ($item as $key => $row) {
$weight[$key] = $row->weight;
$name[$key] = $row->name;
}
array_multisort($weight, SORT_ASC, $name, SORT_ASC, $item);
Comments
Comment #1
magnus commentedActive development is only done for the 6.x branch.