I have a bunch of numbers. Let's use these as an example: 7, 18, 24, 53, 75, 15
When i use rsort() on my array, it orders it something like this:
- 75
- 7
- 53
- 24
- 18
However, this is not what I want. I want my sorting algorithm to sort my array in numeric order descending, so that it looks like this:
- 75
- 53
- 24
- 18
- 15
What sorting algorithm is the right one? I've tried a few but none have done the trick.