Contact: aviboots(AT)netvision.net.il
40,875 questions
53,283 answers
573 users
lst = ['12.3', '3.78', '3.77', '3.14', '1.2' , '1.19', '4.122', '4.121'] lst.sort(key=float) print(lst) ''' run: ['1.19', '1.2', '3.14', '3.77', '3.78', '4.121', '4.122', '12.3'] '''