Hi, in category display I need a sort option for the description entries, so I changed the view\category\hmtl.php to:
Code:
$options = ;
$options = JHTML::_('select.option', '', Text::_('EDOCMAN_SORT_BY'));
$options = JHTML::_('select.option', 'tbl.title', Text::_('EDOCMAN_TITLE'));
$options = JHTML::_('select.option', 'tbl.description', Text::_('EDOCMAN_DESCRIPTION')); // new entry
$options = JHTML::_('select.option', 'tbl.created_time', Text::_('EDOCMAN_DATE'));
// $options = JHTML::_('select.option', 'tbl.ordering', Text::_('EDOCMAN_ORDERING')); // entry not needed
$lists['filter_order'] = JHTML::_('select.genericlist', $options, 'filter_order', ' class="input-medium form-select" onchange="submit();" ', 'value', 'text', $state->filter_order);
Overall the sorting works, but the results for the descriptions do not show the expected sequence. There are only eight-digit numbers in the description fields, sometimes several separated with spaces. As an example for an ascending sorting please see attached picture.
Do I have to adjust anything else or what could be the reason? Thank you.
Edocman 1.25.6, Joomla 5.12.