I do appreciate the references, but I have spent 2 hours trying various combinations of :sort and sortsub, with no success.
I can’t even get the numbers to sort (let alone “subsort”).
[EDIT: Not to worry, I did get something else to work, see the end… this is just for documentation]
First I tried:
<$list filter="[tag[Spell]] +[sort[final-cost]]">
But it is sorting the numbers alphabetically (the final-cost is displayed in the [ ]):
Minor Smoke Cloud (VSm) [12] “-5 vision in 5 yd dia, circle, centered on self”
Fireball 1 (VS) [14] “4d burn (3 hex dia.), range 10/20”
Major Smoke Cloud (VSm) [20] “-5 vision in 11 yd dia, circle, range 20 yds”
Soul Shock (Vs) [3] “3d burn, reach C,1”
Continual Light (s) [3] “-3 vision at 10 yds, -6 at 15 yds, -9 at 20 yds.”
Summon Flame (vs) [3] “1d burn”
Blur (vs) [5] “-4 to hit”
Amplify Airwaves (S) [5] “+5 to hearing”
So then I tried:
\define fcsort = "[get[final-cost]]"
<$list filter="[tag[Spell]] :sort[sortsub:number<fcsort>]">
But that just seems to sort by title, and completely ignores the final-cost field:
Amplify Airwaves (S) [5] “+5 to hearing”
Blur (vs) [5] “-4 to hit”
Continual Light (s) [3] “-3 vision at 10 yds, -6 at 15 yds, -9 at 20 yds.”
Fireball 1 (VS) [14] “4d burn (3 hex dia.), range 10/20”
Major Smoke Cloud (VSm) [20] “-5 vision in 11 yd dia, circle, range 20 yds”
Minor Smoke Cloud (VSm) [12] “-5 vision in 5 yd dia, circle, centered on self”
Soul Shock (Vs) [3] “3d burn, reach C,1”
Summon Flame (vs) [3] “1d burn”
Other references (https://groups.google.com/g/tiddlywiki/c/I6aUHAy_Eoc) seem to indicate that I should just be able to use:
<$list filter="[tag[Spell]]sort[title]sort[final-cost]]">
Which seems to work, except for the fact that final-cost is not being treated as a number:
Minor Smoke Cloud (VSm) [12] “-5 vision in 5 yd dia, circle, centered on self”
Fireball 1 (VS) [14] “4d burn (3 hex dia.), range 10/20”
Major Smoke Cloud (VSm) [20] “-5 vision in 11 yd dia, circle, range 20 yds”
Continual Light (s) [3] “-3 vision at 10 yds, -6 at 15 yds, -9 at 20 yds.”
Soul Shock (Vs) [3] “3d burn, reach C,1”
Summon Flame (vs) [3] “1d burn”
Amplify Airwaves (S) [5] “+5 to hearing”
Blur (vs) [5] “-4 to hit”
I was finally able to google an answer that worked (using nsort):
<$list filter="[tag[Spell]sort[title]nsort[final-cost]]">
Continual Light (s) [3] “-3 vision at 10 yds, -6 at 15 yds, -9 at 20 yds.”
Soul Shock (Vs) [3] “3d burn, reach C,1”
Summon Flame (vs) [3] “1d burn”
Amplify Airwaves (S) [5] “+5 to hearing”
Blur (vs) [5] “-4 to hit”
Minor Smoke Cloud (VSm) [12] “-5 vision in 5 yd dia, circle, centered on self”
Fireball 1 (VS) [14] “4d burn (3 hex dia.), range 10/20”
Major Smoke Cloud (VSm) [20] “-5 vision in 11 yd dia, circle, range 20 yds”
I will say this… it is never a boring day in Tiddler-land Thanks again for responding, and nudging me in a direction (that finally got me to where I needed to go).