human
python sorting two lists
assistant
Here is some code to sort two lists `list1` and `list2` together using lambda function

[list(x) for x in zip(*sorted(zip(list1, list2), key=lambda pair: pair[0]))]

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