I am using a Dataview query to list all the files in a folder. It returns two columns.
I found the code somewhere in this forum, but I didn’t record the link.
This is the code I use:
TABLE WITHOUT id file.link AS "File Name", Content AS "Description"
FROM "CODE SNIPPETS"
WHERE file.link sort asc
Your query has a syntax issue in the WHERE and sort clauses. To sort alphabetically by the file link, use SORT instead of WHERE. Here’s the corrected version:
TABLE WITHOUT ID file.link AS "File Name", Content AS "Description"
FROM "CODE SNIPPETS"
SORT file.link ASC