duplicate wishlist func as compare func