Fixed a bug where the value comparator had inverted return values.