Skip to content

Instantly share code, notes, and snippets.

@Winston1029
Created August 7, 2013 02:00
Show Gist options
  • Select an option

  • Save Winston1029/6170581 to your computer and use it in GitHub Desktop.

Select an option

Save Winston1029/6170581 to your computer and use it in GitHub Desktop.
Sort multiple lists that reference index each other
list1, list2, list3 = (list(t) for t in zip(*sorted(zip(list1, list2, list3))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment