I don't know proper and beautiful way and not sure if even exist, let me share 
straight forward way which should work anyway (note: i'm terrible newbie to 
magnolia and don't know all the shortcuts).

According to 
[url=http://svn.magnolia-cms.com/svn/community/magnolia/tags/magnolia-4.4.5/magnolia-taglib-cms/src/main/java/info/magnolia/cms/taglibs/CmsFunctions.java]source
 code[/url] ${cmsfn:nodeDataIterator(xxxxx)} returns java.util.Collection.
I'm not sure about magnolia's implementation behind this particular collection 
but general approach is to sort the result manually.
I.e.
[code]import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
.........
Collection c = .... obtain the collection
List list = new ArrayList(c); // wrap it as a list
Comparator comparator = new YourComparator(); // this could be inline 
implementation of Comparator interface, here you define how to compare two 
items, downloads
Collections.sort(list, comparator);[/code]

This code can be implemented in a jsp syntax.

Lauri.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=1265b531-cc48-46d7-85a6-99eff5a86652


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to