Index: trunk/core/units/custom_fields/custom_fields_tag_processor.php =================================================================== diff -u -N -r4029 -r4043 --- trunk/core/units/custom_fields/custom_fields_tag_processor.php (.../custom_fields_tag_processor.php) (revision 4029) +++ trunk/core/units/custom_fields/custom_fields_tag_processor.php (.../custom_fields_tag_processor.php) (revision 4043) @@ -48,7 +48,7 @@ } if ($this->Special == 'general') { - $this->sortCustomFields($list->Records); + $this->groupRecords($list->Records, 'Heading'); } while (!$list->EOL()) @@ -68,23 +68,6 @@ $this->Application->SetVar( $this->getPrefixSpecial().'_id', ''); return $o; } - - - - function sortCustomFields(&$records) - { - $sorted = Array(); - $i = 0; $record_count = count($records); - while ($i < $record_count) { - $sorted[ $records[$i]['Heading'] ][] = $records[$i]; - $i++; - } - - $records = Array(); - foreach ($sorted as $heading => $heading_records) { - $records = array_merge_recursive($records, $heading_records); - } - } } ?> \ No newline at end of file