Added sorting and snapshot removal (command displayed rather than executed during testing).