| players = [
|
| ("Player 1", 2200),
|
| ("Player 2", 1800),
|
| ("Player 3", 2000),
|
| ("Player 4", 1900),
|
| ("Player 5", 2300)
|
| ]
|
|
|
| sorted(players, ?) // hwo to sort by second value which is rating?
|
| players = [
|
| ("Player 1", 2200),
|
| ("Player 2", 1800),
|
| ("Player 3", 2000),
|
| ("Player 4", 1900),
|
| ("Player 5", 2300)
|
| ]
|
|
|
| sorted(players, ?) // hwo to sort by second value which is rating?
|