How to sort by distance in aggregation?

Hello,

is it possible to sort by geodistance in an aggregation ?
I can't find a way to achieve this.

I need aggregations to remove duplicates according to multiple terms, bu I need to sort the results by geodistance.

Thanks in advance

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