Hi all,
I am trying to sort a nested tree where I would like to sort on a child of
the root element being the end date.
The structure is :
[{name=Education
, data=Quality Management, type=text, options=[]
, Level={name=Level, data=Bachelor, type=list, options=[]}
, End_Date={name=End_Date, data=30/06/2000, type=text, options=[]}
}},
{name=Education
, data=Computer Science, type=text, options=[]
, Level={name=Level, data=Bachelor, type=list, options=[]}
, End_Date={name=End_Date, data=30/06/2000, type=text, options=[]}
}},
{name=Education
, data=Business Economics, type=text, options=[]
, Degree={name=Degree, data=MagnaCumLaude, type=list, options=[]}
, Level={name=Level, data=Master, type=list, options=[]}
, End_Date={name=End_Date, data=01/01/2008, type=text, options=[]}
}}]
The function I am calling is, but does not seem to work
#foreach($obj in $sorter.sort($Education.getSiblings().getChild("End_date"),
"data"))
$obj.getData()
#end
Can someone help me
--
View this message in context:
http://www.nabble.com/Sorting-a-nested-tree-tp24943416p24943416.html
Sent from the Velocity - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]