Sort Pages
Description | : | Sort pages in current section or notebook by name, sub pages stay under their parent pages and sorted among themselves |
Download |
||||||
---|---|---|---|---|---|---|---|---|---|
Author(s) | : | Onetastic, timcurran | |||||||
Category | : | Sort | |||||||
Last Updated | : | November 24, 2021 | |||||||
Requirements | : | OneNote 2010 or above | |||||||
Watch this short video to learn more about this macro | |||||||||
![]() ![]() |
|||||||||
Screenshot | : | ||||||||
![]() Sort Pages
|
|||||||||
Changelog | : | November 24, 2021 (DBD55E) - Onetastic March 22, 2019 (5303CE) - Onetastic March 04, 2019 (AA7CDA) - Onetastic February 22, 2018 (8610AF) - Onetastic August 17, 2017 (1F84F0) - Onetastic June 12, 2017 (AEC683) - Onetastic June 20, 2016 (F6B2AD) - Onetastic These versions are no longer supported: August 20, 2015 - Onetastic August 18, 2015 - timcurran May 24, 2014 - Onetastic |
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.
windows 10, OneNote 2016
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.
apple
car
zebra
česko
žirafa
#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.
It sorts incorrectly if the pages look like this
1
- 1/1
- - 1/1/1
2
- - 2//1
here it moves the 2//1 page to below 1/1/1 (inside 1/1), because it does not have a parent at one level above it. It looks like the macro just remember the last page at a given level, which is incorrect. When ever a page is seen at for instance level 2 it should set this page as the parent page for all sublevels eg level 3+4.
If I use the current "Sort Pages" Macro. If I use the ascending option it will sort the pages in this fashion:
11 Terrance Pl
20 Louise Ln
56 Read St
87 Terrance Pl
How do I reprogram the sort macro to sort by the Name then Number in Ascending order e.g:
11 Terrance Pl
87 Terrance Pl
56 Read St
etc?
Thanks this will be very helpful to do.
regards,
Peter
Is the onetastic app and the sort-macro also usable on my iPAd ( i.OS 10.3.3) ?
Thanks for your response
Guenter
I wanted to sort the main Grouped pages only
I dont want to sort the Subpages amongts them selves.
How can i acheive this?
Just sort the main Grouped pages as they are but dont split up the Groups
Dont sort amongts Sub pages
Sort each Group Alphabetically
Preserve the subpages order
thanl you :)
Tony
This worked fine for me except for password protected sections which would not sort. Not a show stopper however.
Looks like the "GetCurrentSection().pages" line does not like protected sections?
Tony
Thanks!
After you download the sort Macro you will need to make sure that you choose "sort pages in all sections" and then choose ascending order. It is not a one step process that we are use to in word or excel.
Happy new year!
Please can you fix this macro it sorts the numbers in the wrong order eg
Before
1
56
1000
4
After Ascending
1
1000
4
56
1000 is bigger than 4
I really need to use this my pages are all a mess :(
Thank you
what i want
1,
2,
4,
11,
29,
110,
220,
1000
what sort macro do
1,
1000,
11,
110,
2,
220,
29,
I have downloaded Onetastic but I am note able to make it work.
The ribbon shows no icons related with Onetastic.
Please advise
Windows 10
Please help.
Windows 8.1 Enterprise, x64, OneNote 2013
I have stayed with ON2010 and Office 2010 as I do not work in an organization requiring lots of up-to-date collaboration tools. Love OneNote, adopted in 2003. Will donate.
"Sort Pages-Ascending/Descending".
Great Macro. Works as described. For me OneNote would be useless without a page sorting function. Thank you very much!
thank you very much for the changes. I try it out, and the subpages are correctly sorted under their parents. Just one more question: the subpages are sorted amongst themselves, meaning that if I sorted them manually for whatever reason, this sorting is changed by the macro. Does that happen by intention? If so, no problem, I just want to know...
Once again: thank you for your great work!
Kind regards, Rainer
great macro, but if you sort descending, the subpages do not stay under their parent pages and sorted among themselves. Instead they are also sorted in reverse order meaning they are sorted above the parent page and therefore are subpages of a different parent page.
Is there an easy solution or am I doing something wrong?
Thanks and regards
Rainer
I just installed Sort Pages 32 Bit and I receive upon executing it the following error:
Macro contains error
uninitialized variable used: lastPageAtLevel[0]
Can you please help ?
Thanks, regards Michel
Nice one. Thanks Omer!
Nice one. Thanks Omer!
I couldn't spot an option for it. And the macro doesn't seem to flip between forward and backward sorting. I wasn't expecting that it could sort backward, but I'd use the facility if it existed. Thanks - it's a very useful macro just for forward sorting!