Skip to content

Instantly share code, notes, and snippets.

@trivial-search
Created August 6, 2018 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trivial-search/385bc1565472056cf3c9d4b1099f6903 to your computer and use it in GitHub Desktop.
Save trivial-search/385bc1565472056cf3c9d4b1099f6903 to your computer and use it in GitHub Desktop.
# use lambda operator to define the key
output_list = sorted(output_list,key= lambda x: x.split()[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment