Help sorting documents by value?

Hi @TemeS,

You have an example of aggregation pipeline here:

And a function example at the top.

Does that help?

Cheers,
Maxime.