Utility compare function, accepts two objects (a,b) and returns 1 if a >= b otherwise -1.