]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/runner.py
Fix sort function
[lightcards.git] / lightcards / runner.py
index 0d01ca16b8df467b0899e646d75d2485de6a001b..35651f92b5fd1d20cb7454b9bc1e1f34c661d1e6 100644 (file)
@@ -64,7 +64,7 @@ def show(args, stack, headers):
     if args.shuffle:
         shuffle(stack)
     if args.alphabetize:
-        stack.sort()
+        stack.sort(key=lambda x: x.front)
     if args.reverse:
         stack.reverse()
     if args.flip: