Sort order of lists in multidimensional array in Python,"test = sorted(test, key=lambda x: len(x) if type(x) == list else 1)"