Friday 26 January 2007 8:19:11 am - 1 reply
Betsy Gamrat
Monday 02 April 2007 8:11:01 pm
As often happens - another approach appears. This one builds a sorted list, rather than sorting it after assembly.
{def $sorted_event_array=array() $value='' $i=0} {foreach $events as $k => $v} {set $value=concat($v.data_map.start_date.content.day,'-',$k)} {set $i=0} {while and(is_set($sorted_event_array[$i]),$value|gt($sorted_event_array[$i]))} {set $i=$i|inc} {/while} {set $sorted_event_array=$sorted_event_array|insert($i,$value)} {/foreach}
:)
You must be logged in to post messages in this topic!