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.
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:08 MET