Adding code to sort the pet parties by name.