how to sort an array that contain second order in python? : for instance, I have an array like:

    [[1,1,0],[1,0,1],[0,0,0]
first to sort the first element, and then if the first element are same ,sort the second element, and then if the second elements are same sort for third, forth....
the result should like this:

    [[0,0,0],[1,0,1],[1,1,0]

obviously, the `sorted` function cannot solve this problem easily even if use `key=...`