Hi, see the example in $ROOTSYS/test/tcollex.cxx (check methods Compare() and IsSortable() in TObjNum. Also have a look at TObjString::Compare() and TNamed::Compare(). To sort a TList you can either use a TSortedList (always sorted at insertion) or TList::Sort() to a-posteriory sort a list. Cheers, Fons. Yongzhao Zhou wrote: > > Dear Rooters, > Who knows where I can find a function of alphabetical order to sort the > object name in a TList in ROOT package? > Thanks so lots, > Yongzhao Zhou > > ------ > Yongzhao Zhou, KLOE, LNF, INFN, Italy > Tel:39-06-94032696 Fax:39-06-94032427 -- 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 7677910
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:44 MET