String fields are sorted using natural (lexicographic) order. For characters in ASCII range this means uppercase letters will sort before lowercase letters (e.g., 'A' U+0041 sorts before 'a' U+0061). This behaviour is documented on in the JavaDocs for org.apache.lucene.search.Sort.
-tree On Jan 11, 2008 11:40 AM, Alex Wang <[EMAIL PROTECTED]> wrote: > Hi All, > > > > I was searching my index with sorting on a field called "Label" which is > not tokenized, here is what came back: > > > > Extended Sites Catalog Asset Store > > Extended Sites Catalog Asset Store SALES > > Print Catalog 2 > > Print catalog test > > Test Print Catalog > > Test refresh catalog > > print test 3 > > test catalog 1 > > > > Looks like Lucene is separating upper case and lower case while sorting. > Can someone shed some light on this as to while this is happening and > how to fix it? > > > > Thanks in advance for your help! > > > > Alex > > > > > > -- Tom Emerson [EMAIL PROTECTED] http://www.dreamersrealm.net/~tree <http://www.dreamersrealm.net/%7Etree>