remove duplicates and sort by data in the Archive constructor, fixes #71