Overview | Methods | Fields | This Package | All Packages
Specifies that punctuation and symbols are treated the same when comparing or sorting strings.
Syntax
public static final int STRINGSORT;
Remarks
Typically, strings are compared using a word sort technique, where all punctuation marks and other non-alphanumeric characters, except the hyphen and the apostrophe, come before any alphanumeric character. (The hyphen and the apostrophe are treated differently from the other non-alphanumeric symbols to ensure that prefixes such as coop and co-op stay together within a sorted list.)
If the STRINGSORT flag is specified in calls to compare and sort, strings are compared using a string sort technique, where the hyphen and apostrophe are treated like any other nonalphanumeric symbols. They precede the alphanumeric symbols.