I\'m trying to display some results in a human-readable way. For the purposes of this question, some of them are numbers, some are letters, some are a combination of the two.
def mySort(l):
numbers = []
words = []
for e in l:
try:
numbers.append(int(e))
except:
words.append(e)
return [str(i) for i in sorted(numbers)] + sorted(words)
print mySort(input)