Sort functionality works. Fixed other methods:

Had to fix the petExists() and ownerExists() functions as well as the
addPet() and addOwner() due to simple logicistical errors such as
accidentally adding only if the pet/owner existed rather than did NOT
exist.