How do I Sort a Pivot Table that Uses a Slicer to Update Values?

I have two pivot tables that are controlled by a slicer. Each time the user selects a record from the slicer, the pivot tables update. The problem is that the pivot tables are filtered to show to top 10 values, and each time the user selects a record, the values are rearranged and go out of order. I need the records in the pivot tables to order themselves by rank. Note: The second pivot table is not shown in the attached screenshot. Thanks.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Can you post a sample workbook that have the pivots ?
calyx_terenAuthor Commented:
calyx_terenAuthor Commented:
Here is an example of the workbook.
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

Is this what you want  ? check the file and let me know. If it is what you want I will let you know how I fixed it.
calyx_terenAuthor Commented:
That's it! What did you do?
calyx_terenAuthor Commented:
I just noticed that it's not working consistently. See Your Bottom 10 Files pivottable for Author 3. The files are not in order by Rank,
calyx_terenAuthor Commented:
That looks right. Were you able to find a dynamic way to have the tables sort by Rank? I know how to sort them manually by dragging and dropping the rows, but that is not what I'm looking for. How did you do it?
Well the way I did it (don't know what you mean by Dynamically) is the following:

1) You click on the first pivot in any cell of the Rank column
2) On the Data Menu choose Sort
3) Click on from Largest to Smallest
4) Press ok

Only on the Pivot Bottom you need to select the opposite from Smallest to Largest.

If you are expecting something else let me know.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
calyx_terenAuthor Commented:
That answers my question. Thank you!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.