def top_hits(hits, num, column, reverse):
hits.sort(key = itemgetter(column), reverse = reverse)<EOL>for hit in hits[<NUM_LIT:0>:num]:<EOL><INDENT>yield hit<EOL><DEDENT>
get top hits after sorting by column number