IsSorted - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


StringTools

  

IsSorted

  

sort a string

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IsSorted( s )

Parameters

s

-

Maple string

Description

• 

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.

Examples

withStringTools:

IsSortedabc

true

(1)

IsSortedacb

false

(2)

IsSortedaabbcdee

true

(3)

IsSortedSortRandom1000000,lower

true

(4)

See Also

sort

string

StringTools

StringTools[Sort]