This question has already been answered:
- Synchronous sorting of Python lists 3 responses
Suppose there are two lists:
a=["Andrei","Oleg","Vadim","Vladimir"] b=[4,2,1,3] I can’t figure out how to sort on list b in order to place names in list a accordingly, and in the end it turned out:
a=["Vadim","Oleg","Vladimir","Andrei"] b=[1,2,3,4]