get top hits after sorting by column number

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