opCmp makes no promise to return 0, 1 or -1 (AFAIK). The old code was correct (and faster).