I have an array of string-numbers, like:
numbers = [\'10\', \'8\', \'918\', \'101010\']
When I use sorted(numbers), I get them
sorted(numbers)
You can transform the elements of the array to integers by using the built-in map function.
print sorted(map(int, numbers))
Output:
[8, 10, 918, 101010]