Pivot Table sorting the rows in ascending/descending order

Add simple JavaScript code to sort pivot tables by ascending/descending order! Message me or leave your contact information in the comments below.

https://ibb.co/JztVBrm

Hi Carson, I would love to know how you do this. I have a pivot table showing sales results for a team of sales people. Right now I have the table rows set up by sales person name, however it sorts by alphabetical order of sales person name. I would like it to sort by total sales from highest to lowest. Can you assist?

Hi Carson,

Are you able to share the JS code to sort PivotTable columns like this? This feature is exactly what I have been looking for, but my knowledge in JS code is very limited.