Sort specific children in a list based on their values
Hi,
I am creating a scorecard for my game and have the structure below:
The first items are just headers and some whitespace to get the correct spacings in my vertical layout group. Then I have the player items themselves, 3 in this case.
Each time a playe rmakes a move I update the leaderboard which works fine. It also calculates the total number of shots the player has made.
I want to sort the order of the 3 items based on their score but can't figure out how to properly do this. Can someone please point me in the right direction?
Your answer
![](https://koobas.hobune.stream/wayback/20220613045048im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Trying to change the "camera.transparencySortAxis" to a new vector3 in runtime. [SOLVED] 1 Answer
How to sort and detect pattern? 0 Answers
Sort list by distance AND by being active 3 Answers
Sorting player scoreboard based on their score 0 Answers
help please. I wrote a mergesort algorithm that does nothing. 0 Answers