Extract SectionSorter and Node.

Start to make the code more explanatory.