Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: v_borchert@despammed.com (Volker Borchert) Newsgroups: comp.lang.java.programmer Subject: Re: case insensitive sort Date: 23 Nov 2011 19:32:12 GMT Organization: Private site at Eddersheim, Germany Lines: 16 Distribution: world Message-ID: References: <6vqdnf10be9KFlHTnZ2dnUVZ_rudnZ2d@earthlink.com> X-Trace: individual.net NAV8TXjDE/o2qdTu3ABE6gtQj+/a33oHS8so2wRdAnk6o+Y/pB Cancel-Lock: sha1:7BQs7xJlypdKZeb/SuL0juvhehc= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10195 Roedy Green wrote: > The only beast I know of that takes a compareIgnoreCase is a String. What about Collator? And the generalized idea - try to establish a time invariant total ordering if possible - is also worth keeping in mind, for any objects: If one attribute or comparator compares equal, additionally use another. (If only to reliably avoid lock acquisition order problems.) -- "I'm a doctor, not a mechanic." Dr Leonard McCoy "I'm a mechanic, not a doctor." Volker Borchert