Menus: Smarty Modifier to Reverse Sort Arrays
Posted: Mon Feb 09, 2009 5:49 am
Nullig posted some excellent code at http://forum.cmsmadesimple.org/index.php?topic=22370.0
but it only deals with single level menus.
So a menu like
But say I have
That is, I want
Many thanks
Andrew Prior
but it only deals with single level menus.
So a menu like
can be changed toLevel One
Level Two
Level Three
using this technique.Level Three
Level Two
Level One
But say I have
My Level Two gets many many additions, so I want the newest posts to appear at the top, not the bottom.Level One
Level Two
A
B
C
Level Three
That is, I want
Nullig's method will give meLevel One
Level Two
C
B
A
Level Three
Can anyone tell me how to resort the array on just the one level. It's well outside my knowledgeLevel Three
Level Two
C
B
A
Level One
Many thanks
Andrew Prior