Sort by aggregations on nested?

Hi, I have following query:

sorry, I couldn't find how to insert formatted json, tried 4 spaces, but failed, so I put my mapping, sample data and query here: https://www.paste.org/96051
I hope that's ok

how can I introduce sort, so in "variants" I'd get variants sorted by price? is it possible to sort offers>variants bucket by offers>variants>variant>variant-sum value?

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