![]() |
Sorting Array in Smarty Alphabetically
Hi All,
I was wondering, is there some way of using a foreach loop in smarty and sorting alphabetically. I am retrieving a list of Newlists from the DB on the register screen, so in register.tpl I am stepping through. Similar to: Code:
{foreach from $newslists item=z} I would like to build the list of checkboxes ordered by name. Does anyone know how to do this? Thanks, FWM. |
Re: Sorting Array in Smarty Alphabetically
Thsi may help
http://www.smarty.net/forums/viewtopic.php?t=1079 |
Re: Sorting Array in Smarty Alphabetically
Thanks Steve,
That worked. |
All times are GMT -8. The time now is 10:45 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.