Posted 1 July 2021, 2:53 am ESTPivotGrid measures are not being sorted properly when totalsBeforeData is enabled.
To reproduce this bug, setup a pivot grid with 2 row fields and at least 1 value field.
Make sure totalsBeforeData is true for the pivotEngine. Sort the value field column by either by clicking on the column header or through code. Notice that the values under the grouping is not being sorted in this setup while if totalsBeforeData is false it works just fine.