--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 tiddlywiki+...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/M63zITq--3-2%40tutamail.com.
Even if I leave the "n" off, 18 is still ranked above 5.29 Apr 2020, 11:11 by tiddl...@googlegroups.com:
I have a field called "number", in which I add a different value for each tid. The value format is "nx", e.g. n5, n37, etc. The tids with these numbers are listed in a separate tid with the following code/script:<$list filter="[all[tiddlers]each[number]sort[number]get[number]]" variable=value >__<<value>>__<br><$list filter='[all[tiddlers]number<value>sort[]]'></$list></$list>So they are sorted numerically, which means n5 and its associated tid title is above n37 and its associated tid title. Duh.But …… n18 is above n5, which indicates to me that the macro only looks at the 1st digit after the "n". I tried putting n18 between double square brackets, or to write it as n.18, but to no avail.What do I need to add to the script?--Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:
--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 tiddl...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f1bee74a-f234-4206-86ba-650ca39b4891%40googlegroups.com.
Have you tried nsort rather than sort?
it is designed for numbers but I am not sure how it will respond to your lead in "n".
Never the less, I think your leading zeros is a good idea. I have a nice trick for generating leading zeros I will post if you want when at my desktop.
Regards
Tony
Do not use sort. Use "sortan" operater. It is specifically made for this.
--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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/41ff6ed2-9fd9-4dc5-8621-7682b3ec95a5%40googlegroups.com.