Sorting numbers in string format with Python,keys.sort(key=lambda x: [int(y) for y in x.split('.')])