API How to set sorting by avg_quantity DESC

Hi, I try to get top e-commerce products, but sorting does not work


How to sort by avg_quantity?

known bug: API: Column sort does not always work for processed metrics · Issue #2838 · matomo-org/matomo · GitHub

Thank you, I’ve done post processing on PHP…