HELP:sorting list of outline numbers

Christopher Subich spam.csubich+block at block.subich.spam.com
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
old_outline]))]



More information about the Python-list mailing list