'Sort the transformers by priority.
This must be called after the priority of a transformer is changed.
The :meth:`register_transformer` method calls this automatically.'

def sort_transformers(self):

    self._transformers.sort(key=(lambda x: x.priority))
