Thank you both for the quick help. @eastgate: yes, it is as you understood correctly — I am using a string attribute. Unfortunately I do not think your solution works in my case.
To make it easier to explain, let us assume that I am trying to sort by $Name. And let us assume that my notes have names like 0_2a14, 0_10,3a, and 0_10,20b.
At the moment, these three are being sorted:
MarkB: to my mind, there is no way I can extract the numeric portion of the name. This is because the naming pattern itself is very extensible, and may contain numbers after letters, and further letters after those numbers, ad infinitum.
At the moment, 0_10,3a is being sorted before 0_2a14. And 0_10,20b is being sorted before 0_10,3a.
@mwra Unfortunately I haven’t been able to figure out how to get your suggestion to work. But it is as you say: I want to force a numerical sort on a non-number/mixed list like the above.