Attribute comparison functions
These functions are used to compare any set of generic attributes.