Fix snapshots ordering before deletion.