Hi Pasha, I'll look into it and provide something coming week. Cheers, Fons. On Sunday 18 November 2001 21:22, Pasha Murat (630)840-8237 FNAL (630)859-3463 home wrote: > Dear Rooters, > > some time ago (see http://root.cern.ch/root/roottalk/roottalk00/3261.html) > we discussed extending sorting functionality of TCollections by adding > one more sort method which would be looking as follows: > > void TSecCollection::QSort(less), > > where `less' is a comparison function for 2 objects with the signature > > Int_t less(TObject* a, TObject* b); > > Such a method would allow to sort ROOT collections using an external > function to compare 2 objects and hence w/o the need to modify the class > definitions in case one wants to reorder the objects stored in a collection > in a different way. > > I'd like to reiterate on this request - it would be nice to have it in > production release of 3.02 and I again apologise if I missed something > which has already been coded in. > thanks a lot, Pasha > > P.S. Otherwise I'm pretty much willing to provide the implementation. -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:08 MET