I have a table that looks something like this, where name is the person's name, and the votes is how many people have rated this person, and the rating_percent is just basically the rating percent itself where 5.0 is the highest. Now my question is, what is the best way to sort them up depending on the number of their votes and rating_percent. And can you also give me a sample code.
| id | name | votes | rating_percent |
| 1 | George | 12 | 4.5 |
| 2 | Pamela | 1 | 5.0 |
| 3 | Britney | 22 | 3.2 |
| 4 | Lucas | 43 | 1.2 |
| 5 | Bobby | 54 | 2.4 |