Sort order of lists in multidimensional array in Python,"sorted(test, key=lambda x: isinstance(x, list) and len(x) or 1)"