def order_cols(df, cols, name):
    """Reorder values in columns to be in alphabetical order

    Parameters
    ----------
    df: DataFrame
        DataFrame with at least two columns to be reodredered in alphabetical order
    cols: List
        Indices of columns to be reordered
    name: str
        Name of reordered column

    Returns
    -------
    DataFrame
        With columns in alphabetical order
    """
    col1 = df.columns[cols[0]]
    col2 = df.columns[cols[1]]
    two_col_df = df[[col1, col2]].drop_duplicates()
    two_col_df[name + '_a'] = two_col_df.apply(lambda row: (row[col1] if row[col1] <= row[col2]
                                                            else row[col2]), axis=1)
    two_col_df[name + '_b'] = two_col_df.apply(lambda row: (row[col2] if row[col1] <= row[col2]
                                                            else row[col1]), axis=1)
    ordered_df = df.merge(two_col_df, how='inner', on=[col1, col2])
    return ordered_df