human
Sorting numbers in string format with Python
assistant
Here is some code to sort list `keys` based on its elements' dot-seperated numbers

keys.sort(key=lambda x: map(int, x.split('.')))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.