Class for comparing the elements in the deduplicator routine, it has two types of compare properties, one for the name and one for the total of an element.