A little question. I wanted to sort projects by projectsize. But as I found
out TW sorts them based on "text" logic, not "math" logic. So, if I want
140.15 Gb be higher then 1.3 Gb, 2 Gb, 3 Gb and not between then I need to
give them values 001.5 Gb, 002 Gb, 003 Gb. But I don't need those
additional "zeros" to show in the appropriate part of the table. So, the
question is how to "remove" those? I thought "removeprefix" should have
worked, but if I try this:
<$text text={{{[{!!projectsize}removeprefix[00]]}}} />
and the field value has "00" in the beginning - everything is ok, but if it
doesn't - I get empty result. I think I messed up with syntax somewhere,
but I don't know where. I tried " +removeprefix", but that also didn't work
out. Why doesn't it remove "zeroes" where they are and leave the rest as it
is?
Plus if there is a single "0" before a number, e.g.: 015.43 Gb, i want to
remove that as well.
--
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/15c4cad7-db2b-4ac6-bbb1-d68e5526e65bo%40googlegroups.com.