Heh, thank. That is exactly my current solution.

I am wondering if there could be a new filter (or option) in the "nsort" 
family of filters which would ignore any non-number characters.  I looked 
at the Javascript functions in sort.js and the sortTIddlers function in 
wiki.js for a clue but I need to study that a bit more to understand how 
sorting works. 

My initial thought would be to use Javascript's String.replace() to remove 
any non-numeric characters from the titles and then pass them on to nsort. 

Thanks.
On Saturday, September 5, 2020 at 6:05:30 PM UTC-4 Mark S. wrote:

> You will likely save yourself hours of headaches if you create separate 
> fields for id and name.
>
>
> On Saturday, September 5, 2020 at 2:10:56 PM UTC-7, amreus wrote:
>>
>> My "people" tiddlers consist of the person's name and an ID number to 
>> make them unique. How can I sort the tiddlers by the ID number?
>>
>> example title: *Karl Roger Stanton (I234)*
>>
>> Thanks.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ad5841f2-eabe-4bbe-b328-31f2cf1ca354n%40googlegroups.com.

Reply via email to