Hello everyone, I am trying to make a leaderboard and I have two list, List1- Names and list2- Points.
List1 Items(Names): John,Peter,Andy,Lana,Jack
List2 Items(Points): 100,400,20,70,300
As you can see that data are fetched in a random order but I want to set the list2 in descending order and the List1 should follow the same pattern.The points allotted to the name will be same.
For eg-
List1(Names): Peter,Jack,John,Lana,Andy
List2(Points):400,300,200,70,20
I want the list to be set as shown above.
I have tried with an extension ListAddOn and it works fine for the Points list but I want to follow the Names list also.
However to do what you seem to want with two Lists is impractical because when you sort, you change the index of the items in the simple List. Once you do that you get garbage (the Lists are no longer in sync). Use a ListofPairs.