def _CheckSortLimit(limit):
 return _CheckInteger(limit, 'limit', upper_bound=MAXIMUM_SORTED_DOCUMENTS)

def _CheckSortLimit ( limit ) : return _CheckInteger ( limit , 'limit' , upper_bound = MAXIMUM_SORTED_DOCUMENTS )
checks the limit on number of docs to score or sort is not too large .