Hello,
I have list named as "Credits" which includes column as : User Name, Credits earned, Earned on.
Suppose it contains data as below:
=====================================
| User Name | Credits | Earned On |
| Jay | 150 | 1-Feb-20 |
| Jesper | 100 | 1-Jan-20 |
| Jay | 200 | 5-Feb-20 |
| Mads | 100 | 15-Jan-20 |
| Jay | 150 | 1-Feb-19 |
| Jesper | 100 | 1-Jan-19 |
Monika 250 14-Feb-20
Adi 300 16-Feb-20
Alexa 100 1-Jan-20
=====================================
So, I want to display details in web part as follow:
Jay = 350
Adi = 300
Monika = 250
Alexa = 100
Jesper = 100
=====================================
I am able to display users depending upon "Credits" column in Descending order with code mentioned at :
Need help on below:
How to get this result only for top 5 people and also if 2-3 people having same credits/points then can their name be sorted on "Ascending" order?
Thanking you in advance.
Have a nice day.
Regards,
Jayashri