Sort Pages

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

Download

Sort Pages

You need Onetastic Add-in
for OneNote to run this macro.
Download Onetastic
Author(s) : Omer Atay, timcurran
Category : Sort
Last Updated : February 22, 2018
Requirements : OneNote 2010 or above
Screenshot :

Sort Pages

Sort direction
Scope
Changelog :

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

Comments

Name
Comment
Cliff - 2018-10-01
Sweet!
jiripolacek - 2018-09-20
Letters with diacritics are sorted wrong. Like:
apple
car
zebra
česko
žirafa
Emily Murphy - 2018-08-28
One quirky thing. I had #p000 where 000's are numbers in front of my parent pages - which are project numbers.  The sorting was strange due to the #.  For example, if had the following
#p004
      child 1
#p005
     #p005 child 1
     #p005 child 2
     child 3

it would reorder them as follows:

#p004
      child 1
     #p005 child 1
     #p005 child 2
#p005
     child 3

I realize "#" is a weird symbol to use so my workaround was to change my #'s to "." instead - and the ordering worked fine.