Awesome! Thanks for the thorough explanation.
def multisort(xs, specs):
for key, reverse in reversed(specs):
That's all it takes! And it accepts any number of items in `specs`.
Before you worry that it's "too slow", time it on real test data.
`.sort()` is pretty zippy, and this simple approach allows using
simple key functions. More importantly, it's much easier on your