Top Score SorterTop Score Sorter
Write a function,
score_sorter(), that will take a list of unsorted scores along with the highest possible score. It should return a sorted list of all of the scores, in descending order from high to low. You are expected to create and implement your own sorting algorithm for this challenge.
score_sorter([1, 2, 3, 9999, 13], 10000) should return
[9999, 13, 3, 2, 1].
This challenge was reported to have been asked at interviews with Amazon. If you’ve covered the material in Pass the Technical Interview with Python or an equivalent, you should be able to solve this challenge. If you have trouble, try refreshing your knowledge with its Sorting Algorithms content.