fixing broken comparator test in IE8 (missing return statement)