import numpy as np
file = open('Mixed.txt')
mixed = []
i=0
for line in file:
words = line.split()
for word in words:
if word.isdigit():
word = int(word)
mixed.append(word)
sortedmixed = sorted(mixed)
np.savetxt('sortedMixed.txt', sortedmixed, fmt = '%1i')