]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/runner.py
Fix sort function
[lightcards.git] / lightcards / runner.py
index 83a71b009b25413e51f112f2e200251b4b705a76..35651f92b5fd1d20cb7454b9bc1e1f34c661d1e6 100644 (file)
@@ -56,7 +56,7 @@ def show(args, stack, headers):
 
     # Check for caches
     idx = Status()
-    cache = progress.dive(get_orig())
+    cache = progress.dive(get_orig()[1])
     if cache:
         (stack) = cache
 
@@ -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: