X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=blobdiff_plain;f=lightcards%2Frunner.py;h=35651f92b5fd1d20cb7454b9bc1e1f34c661d1e6;hp=0d01ca16b8df467b0899e646d75d2485de6a001b;hb=25e3ada874ea7f277129b8d2e39b675bde340afe;hpb=8561997943e7fdebee61f96dc447811ab154ddcb diff --git a/lightcards/runner.py b/lightcards/runner.py index 0d01ca1..35651f9 100644 --- a/lightcards/runner.py +++ b/lightcards/runner.py @@ -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: