If I have a collection of Activites like this:
{Name: User A, Count: 100}
{Name: User B, Count: 100}
{Name: User C, Count: 75}
{Name: User D, Count: 50}
How could I calculate what rank each user is based on the Count field? I can Sort(Activities, Count, Descending), but that would put User A above User B even though they both have the same Count. I'm looking for an output like this.
| Rank | User | Count |
| 1 | User A | 100 |
| 1 | User B | 100 |
| 3 | User C | 75 |
| 4 | User D | 50 |
Thanks!