Bigquery Array Sort Python Dataframe Groupby