Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364729

Summary: JET XPath sort function sorts in ASCII order
Product: z_Archived Reporter: Dave Nice <dave.nice>
Component: JetAssignee: Project Inbox <m2t.jet-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: dave.nice, pelder.eclipse
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
I suggest using a Collator rather than String.compareTo none

Description Dave Nice CLA 2011-11-24 11:42:22 EST
Build Identifier: 3.6.1 M20110210-1200

When I use the xpath sort function within Jet, my users complain that the sort is not as expected.  Specifically, sort order is:

AA
AB
Aa

Rather than
AA
Aa
AB

I suggest that the sort defaults to using a natural sort order, rather than ASCII sort order

Reproducible: Always

Steps to Reproduce:
1. Create XML data including the items AB, AA, Aa
2. Sort using the XPath sort function in JET
3. Expected result is order AA, Aa, AB
Comment 1 Dave Nice CLA 2011-11-24 11:43:32 EST
Created attachment 207487 [details]
I suggest using a Collator rather than String.compareTo