private int SortByPetAssisting(PetDataEx aItem, PetDataEx bItem) { if (!aItem.IsPetAssisting()) { if (!bItem.IsPetAssisting()) { return this.SortByQuality(aItem, bItem); } return 1; } else { if (!bItem.IsPetAssisting()) { return -1; } return this.SortByQuality(aItem, bItem); } }