StringTools
IsSorted
sort a string
Calling Sequence
Parameters
Description
Examples
IsSorted( s )
s
-
Maple string
The IsSorted(s) command tests whether the characters in the string s appear in sorted order.
If s is the empty string, the command returns true.
All of the StringTools package commands treat strings as (null-terminated) sequences of 8-bit (ASCII) characters. Thus, there is no support for multibyte character encodings, such as unicode encodings.
with⁡StringTools:
IsSorted⁡abc
true
IsSorted⁡acb
false
IsSorted⁡aabbcdee
IsSorted⁡Sort⁡Random⁡1000000,lower
See Also
sort
string
StringTools[Sort]
Download Help Document