Restore order to the repo