Sorting of physical archives and provision of a document management and electronic archiving system