On Tuesday, 11 בOctober 2005 09:56, LANTRES Franck wrote:
> Hi,
>
> In a JSP, I use the xtags:forEach element and I would like to sort
> elements in descending order according to an integer value.

> And if I write :
> <xtags:forEach select="/foo/list" sort="value" ascending="false"/>
>
> The result I get is :
> 6
> 56
> 4
> 2

Which is reasonable, as forEach does string sorting. You might want to 
either pad numbers with zeros or white space, or sort them yourself 
somehow.

-- 
Oded Arbel
m-Wise mobile solutions
[EMAIL PROTECTED]

+972-9-9611212 (204)
+972-54-7340014

::..
Never express yourself more clearly than you think. 
        -- N. Bohr

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to