Wow Riz, many thanks. Yes, that works. No need for a workaround anymore!!
Others will be able to benefit from this tip too, I am sure.
29 Apr 2020, 17:53 by madapeedikakka...@gmail.com:
> Do not use sort. Use "sortan" operater. It is specifically made for this.
>
> --
> You received this
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+unsubscr...@googlegroups.com.
Peter
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
Good point, I have added the zero, and now n05 is above n18.
The list looks like n01, n02, etc. n10, n11, n187, n20.
So, the code looks at the 1st digit to determine the initial position, and only
if the 1st digit is the same between 2 numbers will it look at the 2nd digit.
What I'll do is
Sure, but it would not over 05. But then you would consider - are you goind
to 100 or more and take care of that.
onsdag den 29. april 2020 kl. 12.53.15 UTC+2 skrev Peter Buyze:
>
> Even if I leave the "n" off, 18 is still ranked above 5.
>
>
> 29 Apr 2020, 11:11 by tiddl...@googlegroups.com :
>
Even if I leave the "n" off, 18 is still ranked above 5.
29 Apr 2020, 11:11 by tiddlywiki@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
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
7 matches
Mail list logo