afterSplit, OUT = [], []
for i in IN[0]:
afterSplit.append(float(i.split("M.")[1]))
afterSplit.sort()
for i in afterSplit:
OUT.append(("M."+str(i)).split(".0")[0])
Do you know how can I sort the list with element.id by what I get in sorted list of numbers. I mena I need list with this element.id but arranged in the order dedicated by the sorted list above.