filtered_df = filtered_df.sort_values('eprm_table_type') filtered_df.sort_values(by='eprm_seq_nbr', ascending=True, inplace=True)