@complexpoint, I tried running this code without selecting Archive and searches, and for some reason, it keeps placing the “Archive” project all the way up there. My approach was to change,
outline.evaluateItemPath( '/@type=project' )
to something like,
outline.evaluateItemPath( '/* except (archive union @search)' )
Do you have any idea of how to change that behavior?
I was also wondering if it would be possible to change the behavior of the sort to sort by the second element of the string. I have first and last names combined as a project name (so the first and last name are separated by a simple space), but ideally, I would like to sort by last name. I would think that this would be something a lot more complicated, but just wondering if you have something like this already done somewhere in your quiver.