Advanced stats ordering

Somebody has an example or tips on how to order slices by multiple columns. For example I want to order by mean loundness and max loudness and mean pitch. I feel I may have to normalize before…

It can all get a bit fiddly, although I made some abstractions for a workshop a few weeks ago that might help, linked in this post Using slice and ears.fade -> poking into buffers - #8 by weefuzzy

If you use those, then you could use fluid.buf.pool and fluid.buf.stack like:

loudness–> pool   \
                   stack 
pitch   -> pool   /

and from there into dataset?