Yes, you need to create an array of a data bean/value bean/private class
(whatever buzz word you want to give) and then sort that array.  So you
would have an array of arrays and then sort the array of arrays.

On 6/27/06, Robert Harper <[EMAIL PROTECTED]> wrote:

If you need to keep one array in a certain order, why not add the
references
to another sorted array. Then you could have a primary array and a sorted
array. They would both hold references to the same objects. The down side
is
that when you remove an element from one array, you will have to also
remove
it from the other array.

Robert S. Harper
Information Access Technology, Inc.

-----Original Message-----
From: password password [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 8:57 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: sort an array

Hi,

    Arrays.sort(astrName);



I can not use the sort method because I have the arrays have an relation.
I mean, the first element of astrName have relation with first element of
adblBackground1, adblBackground2, adblItensity1 and
adblItensity2.
Then I can sort each array independently, if I sort an element of astrName
I have to sort the rest of arrays.
Can you tell me a way to do this?
Thanks.




---------------------------------

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Marc Farrow

Reply via email to