def METHOD_NAME(self, node):
    r = super(FixIdioms, self).METHOD_NAME(node)
    # If we've matched one of the sort/sorted subpatterns above, we
    # want to reject matches where the initial assignment and the
    # subsequent .sort() call involve different identifiers.
    if r and "sorted" in r:
        if r["id1"] == r["id2"]:
            return r
        return None
    return r