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
This is a result of code that attempts to sort e.g. "file.txt" before "file (2).txt". This is how it sorts on my Linux machine, and if I remember correctly on Mac as well. I just checked, and Windows sorts this as "file (2).txt" before "file.txt", so this treatment is incorrect for Window. I will fix it.
[8.4.0] - 2023-06-19
---
### Changed
- The changelog now only explictly exists in the repository
(issue [#162](SethMMorton/natsort#162))
### Fixed
- Inputs with spaces near adjascent to the extension are now sorted
correctly for `os_sorted` on Windows (issues
[#165](SethMMorton/natsort#165) and
[#166](SethMMorton/natsort#166))
The bug
I have two files with space in one name, say 'a.pdf' and 'a b.pdf'.
os_sorted
sorts these names as'a.pdf'
'a b.pdf'
Expected behavior
Windows Explorer sorts the files in the following order:
'a b.pdf'
'a.pdf'
I expect the
os_sorted
funcion to do the same.Environment:
To Reproduce
If it is of any help, the code from here seems to sort the files as in Windows Explorer. Namely:
The text was updated successfully, but these errors were encountered: