Say, we want to sort results by user_id.
This is how it is done by default:
<?php echo $paginator->sort('user_id');?>
And to change the displayed label:
<?php echo $paginator->sort('User', 'user_id');?>
Here User is the label which will be displayed.
user_id is the field to be sorted.
1 comments:
Perfectly Simple. Cheers.
Post a Comment