Sort an outline at every level: Difference between revisions

m
'write & test' & link to example
(Your sort should not alter the type or size of the indentation units used in the input outline.)
m ('write & test' & link to example)
Line 2:
 
;Task:
Write and test a function over an indented plain text outline which either:
# Reports that the indentation characters or widths are not consistent enough to make the outline structure clear, or
# returns a copy of the outline in which the sub-lists at every level of indentation are sorted.
Line 18:
Your sort should not alter the type or size of the indentation units used in the input outline.
 
 
(For an application of `indentation''Indent respectfulRespectful sort`Sort'', see the Sublime Text package of that name,. theThe Python source text of which[https://github.com/mvnural/sublime-indent-respectful-sort] is available for inspection on Github).
 
 
'''Tests'''
9,655

edits