I was wondring if a new feature of Elastic 6 could help me.
But before I upgrade everything from 5.2.2 I would like to check it first.
I want an aggregation to be sorted based on the sum of all it's sub aggregations.
In the example underneath I would like the top levels to be sorted by the sum of there sub aggregations (the value in pencel).
Is it possible to use Bucket sort aggregation for this?
Or is there an other way to do this?