struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Søren Blidorf <so...@nolas.dk>
Subject SV: Sort a collection in alphabetic order
Date Mon, 10 Mar 2003 18:24:31 GMT
It is not possible.

The select is in a while (rs.next()) {} depending on another value. (Not
easy to explain!!)

I am a ware of normal SQL order by

-----Oprindelig meddelelse-----
Fra: Dave Newton [mailto:dave@solaraccess.com] 
Sendt: 10. marts 2003 19:20
Til: Struts Users Mailing List
Emne: Re: Sort a collection in alphabetic order

On Mon, 2003-03-10 at 13:16, Søren Blidorf wrote:
> I need to sort my collection "people" in alphabetic order by lastname,
> firstname. Can anybody help me?

Most algorithm books will give you more information than you want on
sorting.

Why not just do it in the query and let the db do it?

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message