'Return a sorted FeatureSet with features closest to a given color first.
Default is black, so sortColorDistance() will return darkest to brightest'

def sortColorDistance(self, color=(0, 0, 0)):

    return FeatureSet(sorted(self, key=(lambda f: f.colorDistance(color))))
