Skip to content

Instantly share code, notes, and snippets.

@amckinley
Created January 12, 2015 00:15
Show Gist options
  • Save amckinley/481166303272f15da95b to your computer and use it in GitHub Desktop.
Save amckinley/481166303272f15da95b to your computer and use it in GitHub Desktop.
def _key_fn(x):
return x.first()
def main2():
names = golf_name_list(argv[1])
sorted_names = sorted(names, key = _key_fn)
for n in sorted_names:
print n.first(), n.last()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment