Use compare instead of < and > finding the lower advert