Comparison methods

These constants are used by the Comp function and each time a sort method is needed. For example, in the Array sort methods, when creating a Collection, in the String class methods, and so on.

gb.Binary Binary comparison (This is the default).
gb.IgnoreCase ASCII case insensitive comparison.
gb.Language Comparison according to the current language.
gb.Language + gb.IgnoreCase Case insensitive comparison according to the current language.
gb.Natural Natural comparison according to the current language.
gb.Natural + gb.IgnoreCase Case insensitive natural comparison according to the current language.
gb.Like The second string is assumed to be a LIKE pattern. If the first string matches it, then equality is returned. Otherwise a case insensitive comparison is done.
gb.Match
Since 3.11
The second string is assumed to be a gb.pcre MATCH pattern. If the first string matches it, then equality is returned. Otherwise a case insensitive comparison is done.

Beware that comparing strings according to the current language (gb.Language) relies on the internal collation support of the glibc library.

Consequently, the result of the sort using a specific language can't be told. You have to check by yourself.

It seems, at least for western European languages, that spaces are ignored by the glibc collation routine.