0

I have a list with two related variables: "Name" and "Score"

I want to order the list by Score, and if two people have the same 'Score' then it should be ordered by alphabetically by name. However, when I try this, the tie-breaker is its position on the list.

Is there a way to fix this?

         Name         Score
1        Rodrigo       100

2        Ramon          90

3        Eduardo        90

Then, after applying order(list_name), I get:

         Name         Score

2        Ramon        90

3        Eduardo      90

1        Rodrigo       100
jay.sf
  • 33,483
  • 5
  • 39
  • 75
Ivan
  • 161
  • 8

0 Answers0