Sort Sections

Description : Sort each section in current section group by name


Author(s) : Omer Atay
Category : Sort
Last Updated : August 24, 2017
Requirements : OneNote 2010 or above
Screenshot :

Sort Sections

Sort direction
Changelog :

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

May 23, 2017 (3853AA) - Omer Atay
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) - Omer Atay
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 - Omer Atay
Initial version


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.
gerryco - 2019-10-06
I have a 'poetry' notebook. Each section is an author's name (first name, surname). Would it be possible to adapt this macro so that it sorts on the surname?