Good point - the FList field of a TCollection is private and there is
neither a way of getting to it nor triggering its Sort function.
You could either write your own QSort (or bubble sort depending on your
style) to process your collection, or you could copy the collection items
into a TList, call TList.Sort and copy them back to the collection. (ooh
nasty)
Maybe you really wanted to use a Tlist in the first place? (:
Mike
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of [EMAIL PROTECTED]
> Sent: Friday, 22 September 2000 3:11
> To: Multiple recipients of list delphi
> Subject: [DUG]: Sorting a Collection
>
>
> HI all.
>
> how does one got about sorting a Collection ?
> I want to do it based on a Numberic value.
>
>
> Cheers, Jeremy Coulter
>
>
>
> Jeremy Coulter (Manager)
> Visual Software Solutions
> Christchurch, New Zealand
> PH 03-3521595
> FAX 03-3521596
> MOBILE 021-2533214
> www.vss.co.nz
>
> ------------------------------------------------------------------
> ---------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"