Dataview does not sort files by name

I tried this:

LIST FROM "Università/1️⃣ Primo anno/1️⃣ Primo semestre/🖥️ Architettura degli elaboratori/3.Il processore"
SORT file.name ASC

it should show me all the files in the folder and sort them by name, but it show me all files without ordering them:

immagine

I don’t think is a file name problem because int the file explorer the alphabetical order works:

I don’t know how file explorer works, but for dataview is precisely a file name issue… because in case all your file.name are strings. It doesn’t read the values as a numbers, that’s why 10... is listed firstly than 2..., i.e., names are compared alphabetically, character to character.

If you use always this structure - “number+dot+title” I suggest something like this:

SORT number(split(file.name, "\.")[0]) ASC
5 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.