def add_old_flag(df):
    """
    Mark all mechanisms which were originally evaluated in StatDP [1].

    [1] Ding, Zeyu, Yuxin Wang, Guanhong Wang, Danfeng Zhang, and Daniel Kifer.
        "Detecting Violations of Differential Privacy." In Proceedings of the 2018
        ACM SIGSAC Conference on Computer and Communications Security  - CCS ’18.
        https://doi.org/10.1145/3243734.3243818.
    """
    old_mechanisms = \
        ['NoisyHist1', 'NoisyHist2'] + \
        [f'ReportNoisyMax{i}' for i in range(1, 5)] + \
        [f'SVT{i}' for i in range(1, 7) if i != 2]

    df['old'] = False
    df.loc[old_mechanisms, 'old'] = True
    df = df.sort_values(by=['old', 'mechanism'])
    return df