The second parameter of the toc-selective-expandable macro uses filter syntax to apply a sort order to the set of tiddler being displayed at each level of the tree.
"sort[toc-order]" means "sort the list of tiddlers by the value in the "toc-order" field of each tiddler.
Thus, if each tiddler has a "toc-order" field containing a number then when those tiddlers are shown in the tree, they will be sorted based on those numbers.
The problem is that tiddlers where the "toc-order" field is missing (or blank or non-numeric) are sorted AFTER the tiddlers that do have a defined value for "toc-order", and Jamie was asking how to get these un-numbered tiddlers to default to being placed BEFORE the sorted ones.
Note: for his purposes, Jamie should be using "nsort[toc-order]", which does a NUMERIC sort, rather than an ALPHABETIC sort. With alpha sorting, a sequence of numbers like "1 2 3 10 11 21 22" will be sorted as "1 10 11 2 21 22 3".
However, just like the sort[...] filter, nsort[...] also puts missing/blank/non-numeric values at the end of the list. So, although nsort[...] is correct, it still doesn't solve the original problem.
-e