def sort(self, *args, **kwargs):
    # Maintain compatibility with the previous interface.
    if kwargs in 'sort_function':
      kwargs['cmp'] = kwargs.pop('sort_function')
    self._cmsg.AssignRepeatedScalar(self._cfield_descriptor,
                                    sorted(self, *args, **kwargs))
dataset/ETHPy150Open katharosada/botchallenge/client/google/protobuf/internal/cpp_message.py/RepeatedScalarContainer.sort/swapped operands of `in`