0

I have about 1,500 XML files in a folder. I'm going a little bit crazy because when I sort by name it sort of looks like it's sorted by name, but if you scroll around you can see it isn't fully.

The top of the list looks OK:

enter image description here

...but scrolling down further you see this:

enter image description here

I've already checked to make sure those are zeros and not o's, and they're not. I've also checked that there aren't phantomn spaces at the beginning of some filenames, and there aren't. What is going on??

4
  • It is sorting them numerically, whereas 010 is still considered 10 and should come after 9.
    – n8te
    Mar 9, 2018 at 0:55
  • I don't think that's it. The screenshot doesn't show everything but at first it goes 00... 0a... 0b... ... 1a... 1b... etc. Then once that sequence finishes in the second screenshot you have 9f... and suddenly 010. Also I've never known Windows to sort things numerically.
    – Stephen
    Mar 9, 2018 at 1:06
  • By default there is a GPO setting for file explorer that is set to numerical sorting. See here
    – n8te
    Mar 9, 2018 at 1:09
  • Might shed some lights as well: @("9fd9aedcc9c79dc1658bfe597299f95","010c568209a689f8cd4005a83c2feeae") | Sort-Object | ForEach-Object {$_.Length, $_} in PowerShell Mar 9, 2018 at 4:50

0

You must log in to answer this question.

Browse other questions tagged .