Fix porting bug to make Comparator actually compare correctly.