isSorted#

swordfish.function.isSorted()#

Check whether a vector is sorted or not.

参数:
  • X (Constant) -- A vector.

  • ascending (Constant) -- A Boolean indicating whether X is sorted in ascending order(true) or descending order(false). The default value is true.