Allows to sort model instances based on primary keys.
Returns true if other is the exact same object or corresponds to the same record at the database level.
other