I have a String array that contains the following entries:
Array[0] = "70% Marc"
Array[1] = "50% Marc"
Array[2] = "100% Marc"
Array[3] = "20% Marc"
And I would like to sort this array descending.
When I use Arrays.sort(Array) then it does sort it descending but the 100% Marc is at the bottom (because it only looks at the first character to sort it). I want it to be sorted like this:
"100% Marc"
"70% Marc"
"50% Marc"
"20% Marc"
How can I do that?