Syntax
issorted(array)
Description
The issorted() function checks the contents of named array is sorted in ascending order. A boolean of true is returned if it is, otherwise false.
Example
a=[1,2,3,4,5,6] println(issorted(a)) b=shuffle(a) println(issorted(b)) true false