Build Top 3 Card

I have multiple contributors in my Db and I'd like to create a card where I can display who are the Top 3 contributors sorted by rank.

I have tried using a dynamic text card and the adding the categories with the Text Macros but this solution won't work once I have more than 3 categories. Is setting the amount of rows sufficient or does this only change the amount of rows displayed on the Analyzer? If you have a better solution please let me know.

My data looks like this:

Agent A gent B - 600

Agent B - 200

Agent C- 100

Agent D - 400

and I'd like the card to display this

Agent B

Agent A

Agent C