Sort By smarty - v1.0

Author: Smarty Team

Zikula Version: Zikula 1.0.0

Type: pnRender

Description:

This SortBy plugin allow you to sort an array according to a given field. This is a good sample of an array modifier.



Sample use

In the profile module, if you want to sort the icon in a specific way, you can use this

$accountlinks|@sortby:"icon"

Support Information:

Sorts an array of named arrays by the supplied fields,
code by dholmes at jccc d0t net
taken from http://au.php.net/function.uasort
modified by cablehead, messju and pscs at http://www.phpinsider.com/smarty-forum 



Change Log:


 

Comments

Only logged in users are allowed to comment. register/log in