Yes, by default strings are sorted this way. But most UIs use natural order sorting of strings so when numbers are used in filenames they are sorted in numeric order. This is to be more human-friendly than machine friendly
Here’s an article on the subject by the Co-founder of Stack Overflow and Discourse:
Yes, meanwhile it’s good to learn to use the double-digit system for the first nine numbers as MacOSX and other file browsers also do the same thing. That’s how life is.
I would love to see this changed as I have many notes and folders that have 1-9, and beyond. And I’m unlikely to change my habit going forward…
Further info for reference - the current sort order is Lexicographic/lexical sorting. Whereas, as OP mentioned, we’re interested in a natural/numerical sort, which Windows (and most applications, including VS Code which seems to be Obsidian’s biggest competitor) uses.
is there any new news on this? I’m really struggling to rename all numbering - ie: 1 to 01 and so on. I understand strings are not sorted in arithmetic order but as a naive user I expect to see 11 to be sorted right after 10 in the file name prefix…
Definitely would love to see alphanum sort order. If you use a Luhmann-style numbering system that uses serial proximity to denote strong connections, you end up having to use UUIDs with a ton of unnecessary zeros in order to reduce the possibility of running out of space between notes (e.g. 008a01c03).
Putting in my vote for this feature as well. I use an addressing scheme similar to Luhmann’s, e.g. “x.x.x.x” and it helps immensely to have, for instance, “2." items precede "10.” items (similar to how Finder / Windows Explorer / Zettlr sort them)