diff --git a/pylot/core/util/utils.py b/pylot/core/util/utils.py index f5c9b5fd..bbfe4d4d 100644 --- a/pylot/core/util/utils.py +++ b/pylot/core/util/utils.py @@ -32,7 +32,8 @@ def runProgram(cmd, parameter=None): output = subprocess.check_output('{} | tee /dev/stderr'.format(cmd), shell = True) - +def isSorted(iterable): + return sorted(iterable) == iterable def fnConstructor(s): if type(s) is str: