I am displaying in a dropdown menu a list of values and the problem is that I cannot sort them.
Every option has a value e.g. dog->15 cat->17 apple->22 chair->32
I have tried to use the arsort or usort for defined function but nothing works.
Here is the part of displaying the values
<div class="categoryselect">
<?php echo $this->lists['catid']; ?>
</div>
And here is where the dropdown is created
$lists['catid'] = JHTML::_('select.genericlist',$category, 'catid', 'class="inputtext" onchange="select_cate(this.value)" ', 'value', 'text',$cat_id );
As I said I have use user defined sort functions but it seems that only the key value is affected.
Any help is appreciated
Thank you