keys = [(df.A.iloc[0], i) for i, df in enumerate(list_of_dfs)]
pd.concat(list_of_dfs, keys=keys).sort_index(ascending=[False, True, True]
    ).reset_index(drop=True)
Sort by one column's values, keeping rows grouped by another column's value