Hello again.

I donĀ“t have really much knowledge in Velocity. So right now begging for help :D

#set($users = $xwiki.rightsmanager.usersApi.allUsers) 

#foreach($user in $users)

I am getting an array of objects(user in xwiki). $users-array should be sorted 
by familyname  

Here is the snippet from 

https://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/generic/SortTool.html

I am still kinda confused how to apply this on mine

Single Property Sort
 #foreach($obj in $sorter.sort($objects, "name"))
   $obj.name Ordinal= $obj.ordinal
 #end
 End

Thank you, guys =)
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to