Comparing strings as numbers
int('12') > int('2')
min(int(x) for x in ['12', '2']) == 2
min(['12', '2'], key=int) == '2'
If the user is asking about natural sorting versions strings, or other kinds
of strings that contain numbers, see the questions on natural sorting at
Sorting / comparing versions strings