human
Solve the following python programming problem given the following code:
def encode(data) : 
    assert isinstance (data, dict) 
    def isnt_special(entry) : 
        return (entry [0] not in ('command', 'response', 'error')) 
ordered = OrderedDict (sorted (data.iteritems (), key = ordered)) 
    return (json.dumps (ordered, separators = (',', ':')) + '
') 

    
    

    Fix the buggy line: ordered = OrderedDict (sorted (data.iteritems (), key = ordered))
assistant
#Here is Python program to fix the buggy line: ordered = OrderedDict (sorted (data.

ordered = OrderedDict (sorted (data.iteritems (), key = def isnt_special())