marcusolsson / obsidian-projects

Plain text project planning in Obsidian
Apache License 2.0
1.42k stars 56 forks source link

Sorting full file path when using alias for links #912

Open Akasiek opened 3 months ago

Akasiek commented 3 months ago

What happened?

When sorting fields that contain links to file and the link is an alias (two files in vault have the same name so alias needs to be used).

For example here I have two files called "Audioslave" - an album and an artist.

Here's the album's page and in its properties the link to an artist:

image

The link contains the full path to the file and the file name after the | symbol: [[01 - Areas/Music Collection/Artists/Audioslave|Audioslave]]

When sorting Album project by the Artist name, artists with self-title albums are at the beginning.

image

It happens probably because of the file path in the link.

What did you expect to happen?

I expect that links with full path would sort with only the file name, not the whole path.

How can we reproduce it (as minimally and precisely as possible)?

Anything else we need to know?

No response

Plugin version

1.17.3

Obsidian version

1.6.3

OS

Windows, Linux