e.g.
lst1=['1.11','3.34','2.44','4.5']
lst2=['100.0','5000.9','999.0','666.0']
I want to sort the values in lst1 from max to min which I can do as follows:
lst1_sorted=sorted(lst1,key=float,reverse=True)
lst1_resorted = ['4', '3', '2', '1']
but then I also want to use the sorting on lst2 so that
lst2_resorted = ['666','5000','999','100']
This needs to work specifically for list entries which are floating point numbers. E.g. I can use key=float above. Ideally without having to import another library.