Reverse sorting of undo-strings, in order to remove last created nodes first.