what is the best way to sort list with custom sorting parameters in python?,"sorted(li1, key=k)"