sns.catplot(x='country_code', y='n_order',hue='has_note', data=df_country, kind='bar',order=df_dl['country_code'].value_counts().index) # get order of counts order=df_dl['country_code'].value_counts().index