I want do generate a nice list of all my tags with counts of them.
In edge that works quite well (already using LUA!):
local inputTable = query[[
from t = index.tag "tag"
order by t.name
]]
I get all my tags listed, some appear multiple times, if they are used on multiple pages. That`s what I want…
However in v2 that does not work as expected. Here I see each tag only once. Looks like the result table is some sort of unified (like “uniq”).
Is there a way to turn that off? (e.g. using tho “old” behaviour?)
I managed to get a list (kind of) how I want by using this:
local inputTable = query[[
from t = index.tag "tag"
order by t.name
select {N = t.name, P = t.parent}
]]
But with this my script does not work anymore, e.g. table.sort(inputTable) doesn’t work anymore…