• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

general doubt?

 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is this is the right order. refer http://suhrid.net/wiki/index.php?title=Collections

String natural sort order is lexicographical (Dictionary Sort)
Strings starting with:
Numbers sort first.
Then spaces
Followed by upper case
Followed by lower case.
 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why not test it?


before sort:
[1234, 12, 9, abcd, ABCD, abc]
after sort:
[ abc, 12, 1234, 9, ABCD, abcd]
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right, according to the ASCII characters 0 to 127 or more generally based on the Unicode order.

Regards,
Dan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic