changed order of dumps so that oldest duplicates get deleted first