def sorted_proposals(proposals, scopepref=None, typepref=None):
 sorter = _ProposalSorter(proposals, scopepref, typepref)
 return sorter.get_sorted_proposal_list()

def sorted_proposals ( proposals , scopepref = None , typepref = None ) : sorter = _ProposalSorter ( proposals , scopepref , typepref ) return sorter . get_sorted_proposal_list ( )
sort a list of proposals return a sorted list of the given codeassistproposals .