compareByClass

Compares two items by their class