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]))] -- http://mail.python.org/mailman/listinfo/python-list