#NEWLINE# def sorted_predicate_infos( self , dispatch ) : #NEWLINE# #INDENT# 'Topologically sort predicate infos for a dispatch function.\n\n        :param dispatch: the dispatch function to sort for.\n        :return: a list of sorted :class:`PredicateInfo` instances.\n        ' #NEWLINE# predicate_infos = self . _predicate_infos . get ( dispatch ) #NEWLINE# if ( predicate_infos is None ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# return toposorted ( self )