On Sunday, December 1, 2019 at 2:34:59 AM UTC-8, Mohammad wrote:
>
> Nice solution Eric! I tested this for hundreds of tiddlers (created by 
> TiddlerCommander) and it seems a bit slow but works great!
> I gonna to use this in my Dynamic Tables macro in Shiraz 2.0.0 plugin!
>

hmm... I just realized that it can be nominally less compute intensive... 
you don't actually need to use "fixed[3]removeprefix[0.]"

As long as the numbers are divided by a large enough power of 10 to shift 
all the values to the right of the decimal, they will be correctly "zero 
padded" for purposes of sorting numerically

Thus:
\define getitems()
<$list filter="[tag[test]]">
   <$text text="[["/>{{{ [<currentTiddler>getindex[ia]divide[1000]] }}};<<
currentTiddler>><$text text="]]"/>
</$list>
\end

-e

-- 
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/30eeb8c5-3d62-4e82-8fea-45cb4770e6aa%40googlegroups.com.

Reply via email to