Sort Pages

Description : Sort each page in current section by name, sub pages stay under their parent pages and sorted among themselves


Author(s) : Omer Atay, timcurran
Category : Sort
Last Updated : March 22, 2019
Requirements : OneNote 2010 or above
Watch this short video to learn more about this macro
Screenshot :

Sort Pages

Sort direction
Changelog :

March 22, 2019 (5303CE) - Omer Atay
Fixed a case where pages weren't sorted correctly if two pages have the same name

March 04, 2019 (AA7CDA) - Omer Atay
Fixed an issue where sort order is incorrect

February 22, 2018 (8610AF) - Omer Atay
Now remembers the settings for direction and scope

August 17, 2017 (1F84F0) - Omer Atay
Added an option to sort only selected pages in current section as opposed to all pages in the current section

June 12, 2017 (AEC683) - Omer Atay
Updated to sort numerically if page names start with numbers like 1, 2 etc. This correctly puts a section named 10... after sections named 1... through 9...

June 20, 2016 (F6B2AD) - Omer Atay
Re-written with the new Macro Language to take advantage of cleaner syntax and performance improvements

These versions are no longer supported:

August 20, 2015 - Omer Atay
Fixed 'Descending' option

August 18, 2015 - timcurran
Added Ascending/Descending option

May 24, 2014 - Omer Atay
Initial version


Alex Berg - 2019-04-14
I tested the sort order of the update, and indeed it fixed the problem I reported earlier. Awesome thank you.
Bob Meyer - 2019-02-01
I noticed on a sort with dates the macro isn't sort to the end of the string.

Team Notes 1/09/2019
Team Notes 1/25/2019
Team Notes 1/26/2018
Team Notes 2/08/2018
Team Notes 2/23/2017
Team Notes 3/09/2018

The macro isn't looking at the year. Any suggestion to correct.
Cliff - 2018-10-01