Hi James, is this the compare function you mentioned? Is this implementation ok? Please advise.