Don't have a sample but you can
take a look at the java.util.Arrays's sort(Object[]) method.
May be you can use that in combination with Vector.toArray()
which calls System.arraycopy, so this should be fast, may be
even faster than iterating over Vector's elements during
custom sort if you decide to sort Vectors directly.

method...

--V.

Ryan wrote:
> 
> I am a student but this is not for a class.. I am trying to keep a thread
> running that holds files in a directory. I just want to maximize my bandwith
> and CPU usage for my web site.
> 
> -ryan
> 
> ----- Original Message -----
> From: "Stefán F. Stefánsson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 02, 2001 5:21 PM
> Subject: RE: QuickSorting Vectors
> 
> > R U a student?
> >
> > When is the deadline?
> >
> > -----Original Message-----
> > From: Ryan [mailto:[EMAIL PROTECTED]]
> > Sent: 3. mars 2001 00:46
> > To: [EMAIL PROTECTED]
> > Subject: QuickSorting Vectors
> >
> >
> > Does anyone have a quicksorting class that sorts Vectors containing
> > Strings that wouldn't mind letting me look at?
> >
> >
> > -ryan
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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

Reply via email to