saveTome: write pages out in name-sorted order