Sort an outline at every level: Difference between revisions

m
no edit summary
(Added a new draft task, with a Haskell example.)
 
mNo edit summary
Line 12:
 
 
Your code should be able to detect and handle both tab-indented, and space-indented (e.g. 4 space, 2 space etc) outlines, without being given any advancedadvance warning of the indent characters used, or the size of the indent units.
 
You should also be able to specify different types of sort, for example, as a minimum, both ascending and descending lexical sorts.
9,655

edits