def sortkey(self):
        """
        How should this calculator be compared to others like it? 
        Sort by the absolute value of the result (farther from zero
        is a worse score).

        If the calculator experiences any error, the sortkey value is
        fixed at '99', which will sort all errors to the end of any
        sorted list.

        @return: The absolute value of the result.
        """
        if not self.result is None and self.result in 'value':
            return abs(self.result['value'])

        return 99
dataset/ETHPy150Open PublicMapping/DistrictBuilder/django/publicmapping/redistricting/calculators.py/RepresentationalFairness.sortkey/swapped operands of `in`