Use case or problem
Sorry if there is already a solution for this. I couldn’t find it.
Currently, sorting by
Created time only works for as long as you never move notes to another filesystem or have to restore from a backup. Any user who implements a note taking system that relies on this type of sorting will be in trouble eventually.
This is because there is no practical way to restore filesystem-level creation times (which Obsidian seems to use) on copy/restore. Or it may be possible on some filesystems, but not on others, like ext4.
In other words, a note’s logical creation date is not generally equivalent to the creation date of the file that contains the note, so you could argue that sorting option provided by the app cannot work correctly based on just the filesystem metadata.
When determining a note’s creation timestamp for sorting purposes, prefer a dedicated metadata field in the front matter, if present, and fall back to the filesystem metadata otherwise.
This way we could at least write a script to update the front matter before running a backup or a migration.