Skip to content

Instantly share code, notes, and snippets.

@jonathanagustin
Created April 29, 2020 07:14
Show Gist options
  • Save jonathanagustin/c370b76b396a97e8cf9350656f4044d6 to your computer and use it in GitHub Desktop.
Save jonathanagustin/c370b76b396a97e8cf9350656f4044d6 to your computer and use it in GitHub Desktop.
Python parallel sorting of lists
# Parallel sorting of lists
data = zip(list1, list2)
data.sort()
list1, list2 = map(lambda t: list(t), zip(*data))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment