Sort Pages

Sort pages in current section or notebook by name, sub pages stay under their parent pages and sorted among themselves


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

Sort Pages

Sort direction
Changelog :

December 29, 2022 (4827DC) - Onetastic ★
Added menu for quick actions. All pages in notebook option no longer attempts to sort pages in recycle bin.

November 24, 2021 (DBD55E) - Onetastic ★
Added option to sort all pages in a notebook

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

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

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

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

June 12, 2017 (AEC683) - Onetastic ★
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) - Onetastic ★
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 - Onetastic ★
Fixed 'Descending' option

August 18, 2015 - timcurran
Added Ascending/Descending option

May 24, 2014 - Onetastic ★
Initial version


UNABLE to Sort SUB sections - 2021-12-06
UNABLE to Sort SUB sections
Antonio Salvador - 2020-01-10
Would love it if you could add a toggle to sort all levels or just by first level.

I want to sort ascending on first level (subject) but then descending on internal pages (dates).
With a toggle I could achieve this by first running on all levels by descending order and then run with toggle off (i.e. first level only) in ascending order.
jimjames6 - 2019-11-27
hi Omer - yes, i am using All Pages in Current Section.

windows 10, OneNote 2016