Forums Register Login

general doubt?

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
why not test it?


before sort:
[1234, 12, 9, abcd, ABCD, abc]
after sort:
[ abc, 12, 1234, 9, ABCD, abcd]
+Pie Number of slices to send: Send
Right, according to the ASCII characters 0 to 127 or more generally based on the Unicode order.

Regards,
Dan
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 699 times.
Similar Threads
java.io.File problem
Help needing in using Comparator to sort BY multiple elements in ArrayList
doubt in Mikalai notes in overiding deployment descriptor
Collections - sort
Sorting
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:49:20.