You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The iteration order is unspecified, except that each directory entry is visited only once.
Many filesystems will store file info in sorted order, since there may be some lookup and update benefits to doing so. It's best not to rely on an assumption of filenames being already sorted, since there is no guarantee of it.
It seems stricmp (case insensitive string compare) is not part of the C++ standard, so is not supported by all compilers. Further, the meaning of case insensitive compare can be a bit ambiguous, depending on the language (think accented characters), or just not apply to languages that have no sense of case.
Of course, another option is to simply define the sort order as case sensitive. The way Windows does it is not necessarily "correct", just familiar. I think we would be perfectly justified if we wanted to impose a case sensitive sort here.
With that said, even on Linux, the file explorer and terminal listings show names sorted in a case insensitive manner.
Seems the search function is case sensitive, counting upper case characters ahead of lowercase:
The only change between the above two images is I renamed 'researchtest' to 'Researchtest'
Correct behavior should sort alphanumerically without regard to case.
The text was updated successfully, but these errors were encountered: