how to sort a list in c# unity code example Example: unity sort a list playerList.Sort((p1,p2)=>p1.score.CompareTo(p2.score));