Fixed pet compareTo

Had a simple error where I tried to compare Strings with == instead of
.equals, causing the sorting to only sort names, and not realize to sort
more if the names equalled each other.