Welcome to MSDN Blogs Sign in | Join | Help

Sort Pages powertoy

Here is another powertoy that I wrote that I wanted to share with you all. What does it do? It will sort any section's pages into alphabetical order, like this:

Before

After

Steps:

  1. You need to have OneNote 2007 + the .Net Framework 2.0 installed on your machine
  2. Download the file here: OneNote2007SortPages.zip
  3. Install it!
  4. Close and restart OneNote
  5. You will now have a new toolbar button that you can click which will sort the currently viewed section's pages. The button looks like this:

Notes:

  1. There is NO UNDO! Once you click that button it will sort the pages and you cannot revert the changes so be careful.
  2. You can only sort A-Z, there are no other options.
  3. It sorts by whatever order the .Net Framework believes is correct for your locale. For example sorting in Japanese does not sort by phonetic sounds like it does in Excel (and other Office apps).
  4. For large sections performance isn't the best, just let it finish and it will eventually get there.
  5. There is no prompt before sorting the pages

As you can see there is still some work that could be done with this but I just didn't have the time. I hope to post the code soon and then anyone can take it, add whatever options they want and make it a whole lot better.

I wanted to thank Kazuko Hishikawa, a Tester on the OneNote team, for helping me out and finding all of the issues that I just didn't have time to work out : ) Thanks Kazuko!

Please let me know what you think, I am just excited that I can point this out to my mom since she really wants this feature. If you have problems or questions please let me know in the comments.

Published Saturday, February 17, 2007 1:54 AM by descapa

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Sort Pages powertoy

Daniel,

This addon is SO highly coveted!  I fully plan on using OneNote for my clinical practice, however, I was really concerned about being able to find my patients quickly.  This will be just great (I can sort at the end of every day).

Suggestions?  Well, maybe an addon like this, but it will automatically take a page that begins with B and place it in the B section (or any other letter).  This will help me find my patient's names more quickly.

Thanks!

erik

Saturday, February 17, 2007 12:21 AM by Erik Gulbrandsen

# re: Sort Pages powertoy

This seems to only do pages in a section, not the sections themselves. Since pages in a section are sort of date ordered I don't really mind their ordering (since I normally need to see the last few pages only), but the sections is the big area where sorting is needed.

It works very well though on the pages :)

Saturday, February 17, 2007 1:52 AM by Robert MacLean

# re: Sort Pages powertoy

I can't get this or the Word Count power toy to work...and it says I already have the .Net Framework 2.0 installed as part of my operating system. And of course, I have the wonderful OneNote 2007.

Saturday, February 17, 2007 1:01 PM by Shayne

# re: Sort Pages powertoy

I can't get the toolbar option to show up at all. It also doesn't display in my list of add-ins.

I'm running Vista and OneNote 2007.

This looks like a great add-in!

Monday, February 19, 2007 3:15 PM by Rob Bushway

# re: Sort Pages powertoy

I rebooted, removed the add-in, and re-ran the setup. worked like a charm. great work. we'll get this posted up on GBM

Monday, February 19, 2007 3:27 PM by Rob Bushway

# New OneNote 2007 PowerToys

Dan Escapa is on a tear releasing a set of new PowerToys for OneNote 2007. What's going on is that a

Monday, February 19, 2007 5:48 PM by Chris Pratley's OneNote Blog

# re: Sort Pages powertoy

I'd like to be able to right click on a section and select alphabetize.

Monday, February 19, 2007 9:11 PM by EMRHelp

# re: Sort Pages powertoy

Absolutely great add on.  Great to see the comments from Dr. Erik too with how it helps keep track of his patients!  I have it now on all my tablets with One Note and will use it regularly.  Keep the good stuff coming!  

Monday, February 19, 2007 11:53 PM by Barbara Duck

# OneNote 2007 alpha sorting

Do you use OneNote 2007? Check out this powertoy for One Note from Dan Escapa. It sorts tabs in alpha

Tuesday, February 20, 2007 7:09 AM by John at myITforum.com

# Interesting links from my unread RSS Feed Items

Due to a busy travel schedule and working on the agenda of Dev & IT-Pro Days 2007 , I haven't been

Tuesday, February 20, 2007 4:35 PM by David Boschmans Weblog

# re: Sort Pages powertoy

>>I'd like to be able to right click on a section and select alphabetize.

Exactly what I've been looking for over the past 2 years of using OneNote.

"Sort pages alphabetically" is great.

"Sort Sections alphabetically" would be nirvana.

Thursday, February 22, 2007 1:26 AM by John Waller

# re: Sort Pages powertoy

This plug-in dies when apply to empty sections. To replicate:

1. create a new section called test

2. delete the default page created my One Note

3. Apply A-Z sorting using plug-in

OneNote hangs and I get a message about HRESULT appearing in a dialog box.

Otherwise this plug-in is very useful, so thanks for the effort taken to develop it!

Thursday, February 22, 2007 12:41 PM by Mark Stuart

# re: Sort Pages powertoy

Mark - Looks like you found a bug I didn't test for.  *sigh* if you want I will be publishing the code so you can fix it up if you want!

Thursday, February 22, 2007 12:47 PM by descapa

# re: Sort Pages powertoy

.. sort to pages unfortunately refused to work for me on onenote 2007 (with netframework 2.0) as well,  even after uninstalling, rebooting and reinstalling. the same applies to the word count powertoy.

Friday, February 23, 2007 3:22 PM by confuchsia

# re: Sort Pages powertoy

confuchsia - Are you running Windows Vista?  Do you have UAC/LUA turned off?  I have only heard of a problem where people had UAC turned off and you need to reinstall the app and select the "Install for All Users' option and that seemed to fix up most problems.

Please let me know if this works for you as well, thanks!

Tuesday, February 27, 2007 5:04 PM by descapa

# re: Sort Pages powertoy

hello descapa. no, i am still running window xp. are the powertoys written specifically for windows vista then?

Wednesday, February 28, 2007 12:44 AM by confuchsia

# re: Sort Pages powertoy

confuchsia - No the apps are written for both Vista & XP.  I haven't heard of problems with XP.  Please try a reinstall with the "all users" option turned on.  That is all that I can suggest, hope this works

Wednesday, February 28, 2007 1:04 PM by descapa

# re: Sort Pages powertoy

a reinstall with 'all users' option turned on did the trick. thank you descapa.

Thursday, March 01, 2007 3:20 AM by confuchsia

# re: Sort Pages powertoy

Any luck with tweaking this Sort Pages Powertoy to get a "Sort Sections alphabetically" Powertoy instead?

Friday, March 02, 2007 3:58 PM by John Waller

# re: Sort Pages powertoy

Yes John please see here:

http://blogs.msdn.com/descapa/archive/2007/03/03/sort-sections-powertoy.aspx

Let me know how this goes for you!

Friday, March 02, 2007 7:06 PM by descapa

# re: Sort Pages powertoy

Excellent! I have wanted this feature for so long!

Now all that i need is a way to collaps all the subpages, so i only see the page level....

Any ideas?

Wednesday, March 07, 2007 4:29 AM by Ton van der velden

# re: Sort Pages powertoy

Thanks so much for doing this.  I recently bought OneNote 2007 and am hooked, but this was one of the few things I've noticed so far that I thought it sorely lacked.  Lack of alphabetizing ability and subpages that don't stay grouped in moves (This boggles my brain. I have to be doing something wrong) are my top two pet peeves so far - thanks for eliminating one of them!

Sunday, April 15, 2007 6:47 PM by lullman

# re: Sort Pages powertoy

Any chance of having similar functionality for OneNote 2003?

Saturday, April 21, 2007 12:14 AM by Ash

# re: Sort Pages powertoy

No sadly there is no way to do this in OneNote 2003.  The improved API (which enables this) was a new feature in OneNote 2007

Tuesday, May 01, 2007 3:12 PM by descapa

# re: Sort Pages powertoy

is there a way to collaps all the subpages, so i only see the page level....?

Tuesday, May 22, 2007 9:56 PM by Ton

# great tool

this is a GREAT feature. For the life of me I can not fathom why a simple SORT feature was not inculded in OneNote in the first place. Does anyone have an idea besides "not high enough priority"? Maybe Microsoft should have put more people on ON rather than the silly Zune.

Wednesday, June 27, 2007 11:13 AM by jeff

# re: Sort Pages powertoy

This worked great once. Since that initial sort, the button just goes gray and I have to exit onenote for it to stop.

I highly recommend people DON'T install this.

Tuesday, July 17, 2007 3:03 AM by Andy

# re: Sort Pages powertoy

Wow! I am responsible for vendor management and the ability to keep my notes sorted by vendor is a great boost to my work!!

Thursday, July 19, 2007 3:52 PM by John Jameson

# Summer OneNote 2007 news round-up

It's getting hard to keep blogging about OneNote in detail now that I am no longer on the team, but I

Monday, August 13, 2007 1:46 AM by Chris Pratley's OneNote Blog

# re: Sort Pages powertoy

I tried it (XP Pro and Office 2007 Ultimate with the Install for Everyone option. After reboots and reinstalls nothing. It doesn't work. It gets dumped into the Program Files. A dll and a bmp shows up. That's it though.

Monday, October 01, 2007 2:20 AM by Li-fan Chen

# re: Sort Pages powertoy - Can not get to work

Hi,

Can any-one help? Using XP, Onenote 2007 and .net 2.0 and installed sort pages for everyone but pages sort does not work. Button appears. Click once nothing happens and then goes greyed out. Any-one got any ideas?

Ben

Thursday, October 11, 2007 3:48 AM by Ben

# .net Programmability Support not installed on default

Hi,

I was also having problems with sort pages not working as posted, but found the solution. Although I had .net 2.0 installed, xp etc. when onenote 2007 was originally installed it did not install .net Programmability Support by default. all you need to do is add that installation option to run from the computer by adding the feature from your onenote office disks and all works fine.Hope this helps.

Friday, October 12, 2007 6:52 AM by Ben

# re: Sort Pages powertoy

hi dan,

are you releasing the code for this? It would be of help if you did.

Thanks,

Anirudh

Tuesday, October 23, 2007 11:05 AM by Anirudh

# Source code please

I'd like to modify the code so it examines the existing sort order and reverses it -- so you can sort A-Z then Z-A by applying it twice. The sort order would be determined by examining the first two pages.

Is the source available, please?

Friday, November 16, 2007 8:06 AM by Hoyt Nelson

# re: Sort Pages powertoy

On occasion my Vista Windows Mobile Device Center just...well.. doesn't recognize the device and a new partnership has to be created.  This creates a second OneNote Mobile section called "DeviceName_2".  Although the mobile  device sorts the pages, the local App doesn't... or at least it didn't before I downloaded this app.

I really... appreciate... your time... you certainly saved me a bunch of time.

Thanks again..

Saturday, November 17, 2007 9:46 AM by StanLee

# re: Sort Pages powertoy

this is great. any chance for a similar powertoy to sort lines in a table?

Tuesday, January 08, 2008 3:48 PM by jim

# OneNote Powertoys from the PM team, and a one question survey about them

A few astute readers pointed out I (intentionally) missed a few addins the OneNote team finished last

Friday, January 18, 2008 10:26 AM by OneNote Testing

# re: Sort Pages powertoy

This is nice, but a "sort by date" button would be godlike.

Could this be realized?

Sunday, January 20, 2008 10:28 AM by Peter

# re: Sort Pages powertoy

Awesome!  30 seconds to download, install, and use.

Wednesday, February 20, 2008 12:12 PM by Ben

# re: Sort Pages powertoy

Is there a way to collaps all the subpages, so i only see the page level?

Any ideas?

Thanks,

Ton

Wednesday, March 12, 2008 3:02 AM by Ton

# re: Sort Pages powertoy

I would greatly appreciated, if Sort Pages powertoy not only alhpabetically, but also by creation/modification time.

Tuesday, March 25, 2008 4:59 AM by Denis Fayruzov

# OneNote PowerToys

If you don't know I am a HUGE OneNote fan and have converted countless people from using Notepad

Sunday, March 30, 2008 6:41 PM by The Daily Ramblings of an SMS Engineer

# re: Sort Pages powertoy

Is it possible to get Sort Pages powertoy to sort in reverse order as well?  Like instead of sorting dates from 1990 to 2008, sort them from 2008 to 1990?

This would be a great help.

Sunday, April 06, 2008 4:33 AM by Fred

# re: Sort Pages powertoy

Any possibility of a power toy to sort a OneNote table by a particular column?

Tuesday, June 24, 2008 3:54 PM by Clint

# re: Sort Pages powertoy

Is there a way to collaps all the subpages, so i only see the page level?

puhlease?

Thursday, July 03, 2008 3:55 AM by Ton

# re: Sort Pages powertoy

I simply cannot figure out why you would not add in a plethora of sorting options.  Learning the API and such is the 'hard' part, not basic sorting.

Even more puzzling is that you haven't posted the source code yet (or at least not in an obvious location).

Correct me about the source code?  Either way I'll probably just end up doing it all myself.  I just can't understand how so many people seem to actively minimize the beneficial impact their contributions have (though it would have been worse had you never tried or just kept it to yourself...).

Friday, July 04, 2008 3:37 PM by JK

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker