human
Python - how to sort a list of numerical values in ascending order
assistant
Here is some code to sort list `['10', '3', '2']` in ascending order based on the integer value of its elements

sorted(['10', '3', '2'], key=int)

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