Sort Sections

Sort each section in current section group alphabetically by name


Author(s) : Onetastic ★
Category : Sort
Last Updated : December 11, 2022
Requirements : OneNote 2010 or above
Watch this short video to learn more about this macro
Screenshot :

Sort Sections

Sort direction
Changelog :

December 11, 2022 (E75885) - Onetastic ★
Added menu for quick access to ascending/descending options

August 24, 2017 (15EC27) - Onetastic ★
Added option to sort all sections in a notebook rather than just the current section group

May 23, 2017 (3853AA) - Onetastic ★
Added ascending/descending options and updated to sort numerically if section names start with numbers like 1, 2 etc. This correctly puts a section named 10... after sections named 1... through 9...

June 20, 2016 (34ACAE) - Onetastic ★
Re-written with the new Macro Language to take advantage of cleaner syntax and performance improvements

These versions are no longer supported:

May 24, 2014 - Onetastic ★
Initial version


perrydies - 2023-10-05
This works to sort the sections alphabetically on my personal computer.  However, if I log in and check the same OneNote sections from any other machine (like an iPad, for example), the sections are scrambled.  

Is there a fix for this issue?

I'm using OneNote for Microsoft 365 MSO (Version 2309 Build 16.0.16827.20130) 64-bit.
MOt - 2021-09-30
Worked like a charm on my 2016 OneNote - thank you for this!
Dimo - 2020-09-15
Is it possible to update this macro, or create another macro, to sort sections by modified date?  I have an older macro  called "Sort Sections By Last Modified" that I'd love to continue using on my new laptop.