Compare pointers first.