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.
Bubble sort is so easy to create by yourself. Just read wikipedia, create your own algorithm from base blocks like if condition and while loop. If you do it by yourself you can sort 2 lists at once as the algorithm iterate identicaly trough lists - swap points are the same.
You can also make use of a list in a list. So at every position in the first list you have a list with a name and points, but in that case any lazy bubble sort extension won’t work.