compare the objects instead of the object priorities