How to grouby ('leiden') and then sort by another obs

Hi I like to grouby(‘leiden’) and then sort another obs. I tried adata.obs.groupby (‘leiden’).sort_value. I got this error message:
AttributeError: Cannot access callable attribute ‘sort_values’ of ‘DataFrameGroupBy’ objects, try using the ‘apply’ method

Can you help? Thx!