I have an list of lists, each have a String (index 0) and a Value(index 1) the string has an number in it, example
a = [["Test 1", 5],["Test 2", 3],["Test 3", 1], ["Test 4",3]
I want to sort it based on, firstly, the value, so the higher value goes first and if there is equal value between two arrays, sort with the digit in the string, the lower digit goes first, so it would result in this:
["Test 1", 5],["Test 2", 3], ["Test 4",3],["Test 3", 1]