I need help, sort for this output result bellow my website code :
<?php
foreach ($this->system->produk as $pr_key=>$pr_val):
if ($pr_val->status == 'on'):?>
<li>
<a href="<?php echo site_url(str_replace('_','-',$pr_key));?>"><?php echo $pr_val->nama;?></a>
</li>
<?php endif;?>
<?php endforeach;?>
any idea how to sort this output ?