def sortkey(self):
        """
        Generate a key used to sort this calculator relative to all other
        calculators. The default sorting method sorts by the value of 
        the result.

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

        return self.result
dataset/ETHPy150Open PublicMapping/DistrictBuilder/django/publicmapping/redistricting/calculators.py/CalculatorBase.sortkey/original