How to sort an aggregation in Elastica

I want to sort an aggregation before adding it to the query. But I can't seem to figure out how to do this in Elastica. Any help? I know that it exists the agg sort in Elasticsearch so I was wondering...

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.