- This module aims to reorder the sections on a page so that, for example, you can reorder a talk page from newest sections at bottom to newest sections at top.
Bug 2 (maybe): h1 headed sections are being skipped. But maybe this doesn't matter because we generally don't use h1 headed sections in MediaWiki because h1 is used for page name and therefore not sections. And maybe coding to include h1 is therefore unneeded complexity. So maybe don't fix this. At least not till the rest is working.
Bug 3: numbers are being added to end of section content. Section content should not be modified.
Click 'Edit' to see how the module is run on and reorders the subpage Module:Sandbox/Wnt/NewestAtTop/Test. Click 'Save page' to run it.
//////////
This is intro text; it should remain at page top.
0Edit
This is an unorthodox h1 headed section. Normally we start headings with h2 instead because h1 is used for a page's name in MediaWiki and it is therefore illogical to use if for page section headings.
Second paragraph of section 0
==Edit
Text of section 4
Second paragraph of section 4
==Edit
Text of section 3
==Edit
Text of section 2
=Edit
Text of section 2.3
=Edit
Text of section 2.2
=Edit
Text of too-low-level section 2.2.1.1
=Edit
Text of section 2.1
==Edit
Text of section 1
=Edit
Text of section 1.2
Second paragraph of section 1.2
=Edit
Text of section 1.1