Updated the comparator for Attributes