Sort Everything by Anything

May 25, 2014
An update for Onetastic is available that adds ability to sort everything you can in OneNote by any property you want. This is added as a new Sort command in macros.

New Sort Macros

Along with this update there are six new macros are available that can be readily used and demonstrate the feature: Sort macros

Note that if you sort pages, sections or notebooks, you cannot undo this.

How Sort Command Works

Since this now becomes part of macros, you can extend these or write new ones to sort anything you want by any property or value you decide. A simple sort macro looks like this: Simple sort macro

You can filter the items to be sorted by using That and Under clauses as you can do so in For loops. Following will sort each paragraph under a Table that has more than 2 rows and is edited by "John": Sort filters

Custom Sort Orders

You can see how powerful this is as it has full access to every property. You can also define custom sort orders by making use of variables. Below macro will sort each paragraph by the second letter that appears in the paragraph: Custom sort orders

The variable to be used in sort must be an array that has indices 0 to number of elements being sorted.

Sorting Objects that aren't Siblings

When sorting objects that are not under the same parent object, they are sorted only within their siblings. For instance if you try to sort all pages in current notebook, they will be sorted within each section and they won't move between sections. Similarly if you sort paragraphs in a page, paragraphs in same outline will be sorted together but not across outlines. This is the desired behavior for most cases and will prevent simple mistakes to mix everything up on your pages or notebooks.

Other Feature Requests

Ability to sort was the most requested feature for Onetastic and is the first new feature since I made the feature request list and asked users to vote on them. Since then new feature requests were added to the list, so don't forget to visit the feature requests page and vote on other feature requests. If you previously voted for sort feature, you will get some of those voting credits back to use on other feature requests.

Comments

Name
Comment
Richard Harries - 2016-06-20
Hi Omer.

I love Onetastic - particularly for its sort features.  Do you have any plans to port it onto other platforms, particularly OS-X and iOS?

Thanks.

Richard.
oohgodyeah - 2016-05-05
It was painful to have to download each of the six macros separately, three mouse clicks each.  Why wouldn't you just create one Sort macro package to install all of them at once?!
Is there a way to add an origina - 2016-04-08
I have manually moved and organized many pages, subpages, notebooks, sections, etc. to my liking.  

I don't want to mess up everything without being able to undo it.  This is especially crucial when learning how to use these sort macros.  Is there a way to at least tag every pages in the current notebook with an index number for its current sort order in order to be able to resort back to the pre-sort order?  

Other Posts

Show all posts

DISCLAIMER: The opinions and views expressed in this website are those of the author and do not necessarily state or reflect those of Microsoft.