This is my code for navigation
<ul class="sortlist">
<li class="first"><strong>{$smarty.const.LBL_SORTBY}: </strong></li>
{foreach $listsortby as $key=>$filterby}
<li class="filterLink"><a href="javascript:void(0);" id="{$key}" class="current" >{$filterby}</a> </li>
{/foreach}
</ul>
and Here I want to get the first key, and add class="current"
and rest is empty.
How to get first value and add class name for first navigation? Thanks in advance