Forum Discussion
Sort by Name not proper for numbered files.
- Oct 01, 2021It’s by design. In order to fix it you have to put always ensure your number have 2 digits.
Ex. 2021-9-4 should be 2021-09-04 and then your file will have the proper order.
Examples needed.
Mike Williams Hi, so File Explorer will sort Test2 then Test11, whereas OneDrive will sort Test11 then Test2.
- Mike WilliamsMar 23, 2022Steel Contributor
I think the best way to think about this is: Windows Explorer is an app with a smart view on your folder contents. OneDrive hosts files that may be synched or viewed with many different operating system folder views, few of which have the same options as Windows Explorer. For a consistent experience, use padding with zeros to get the same sort order everywhere.
As an example, I put podcasts on a USB stick to listen to in the car. I prefix the files with numbers to get the desired playback order. My car's entertainment system doesn't do numerical ordering so 140xxx would play before 16xxx. I had to change the naming to 0140xx and 0016xx to get the desired ordering.Similarly desktop operating systems have different allowable filename characters, and OneDrive has to take a lowest common denominator approach to supporting files across all the platforms they can be viewed.
- PeterHughes1580Mar 23, 2022Copper ContributorThanks Mike!