Rather than using the `cmp` kwarg, use `key`. It's faster-running and easier to understand: `lookup_order.sort(key=len)`.