@staticmethod
def sort_result(result_list):
    """
        unittest does not seems to run in any particular order.
        Here at least we want to group them together by class.

        :param result_list:
        :return:
        """
    rmap = {}
    classes = []
    for n, t, o, e, d, l in result_list:
        cls = t.__class__
        if cls not in rmap:
            rmap[cls] = []
            classes.append(cls)
        rmap[cls].append((n, t, o, e, d, l))
    r = [(cls, rmap[cls]) for cls in classes]
    return r
