> Strings are not numbers, even if some part of their content "looks like a number."
Irrelevant and intentionally obtuse. Filenames can't be anything but strings - there's literally no way to mark part of a filename as "this is an integer", so the idea that "strings are not numbers" is ridiculous because the only way to encode numbers (which people constantly want to encode) is as part of a string - which means that parts of filenames are numbers, because that's exactly how people use them.
> Problem is, this is your preference for a specific situation. Which may not be another person's preference in the same situation nor yours in a different situation.
> So what are programs to do?
> Display strings in a consistent, documented, manner. Which is lexicographical ordering in all cases lacking meta-data to indicate otherwise.
These do not follow from each other.
First, the assertion that "peoples' preferences are different, so we shouldn't pick an overwhelmingly common preference" is laughably false. The vast majority of computer users (which happen to not be people on HN) prefer "sort numbers by number rather than by UTF-8 value", so that's simply the correct way to sort.
Second, even regardless of the above, there's nothing preventing a "by name" sorting from being consistent and documented.
Either way, this line of reasoning is just wrong.