def sort_results(results):
    """Converts results to strings and sorts them

    This makes it easier to compare two Result lists that's irrespective of
    order.

    """
    return sorted([
        '%3d:%3d:%s:%s' % (res.line, res.col, res.name, res.msg)
        for res in results
    ])