Saving restoring order of elements