isSorted# swordfish.function.isSorted()# Check whether a vector is sorted or not. Parameters: 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.