HELP:sorting list of outline numbers

Christopher Subich spam.csubich+block at
Wed Aug 3 17:29:23 CEST 2005

Felix Collins wrote:
> Using Decorate, Sort , Undecorate...
> works like a charm.

As a one-liner, you can also deconstruct and rebuild the outline numbers:

new_outline = ['.'.join(v) for v in (sorted([k.split('.') for k in

More information about the Python-list mailing list