Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: File Sorting Problem


08 Mar 2010   #1

Windows 7 Home Premiere x64
 
 
File Sorting Problem

Ive just discovered a new problem. In Win XP All my Movie file clips were sorted by Name ie: Dandy, Dandy (1), Dandy (2). Now this dang Win 7 is sorting them Dandy (1), Dandy (2), Dandy. NOW the first clip is Last. How the heck could MS change sorting after years the first way. AHHHH!

My System SpecsSystem Spec
.

08 Mar 2010   #2

Windows 7 Ultimate x64, Mint 9
 
 

Well, simple solution is to add a 0 to the first one...

Other than that, I believe it has always been this way...

~Lordbob
My System SpecsSystem Spec
08 Mar 2010   #3

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by jambooger View Post
Ive just discovered a new problem. In Win XP All my Movie file clips were sorted by Name ie: Dandy, Dandy (1), Dandy (2). Now this dang Win 7 is sorting them Dandy (1), Dandy (2), Dandy. NOW the first clip is Last. How the heck could MS change sorting after years the first way. AHHHH!
My experience has been that XP sorted files incorrectly:

file1
file10
file11
file2
file3
file4
file5
file6
file7
file8
file9

Windows Vista and Windows 7 has fixed that, and now file sort properly, because it now also recognizes number in filenames as numbers, not just another character in the ASCII chart:

file1
file2
file3
file4
file5
file6
file7
file8
file9
file10
file11
My System SpecsSystem Spec
.


30 Mar 2010   #4

Windows 7
 
 

AFAIK there is simply a bug in Windows 7 sorting file names, and I'm astonished that it hasn't been brought to light before now. Here's a list of files in Windows 7;

C:\windowsbug\00000000.txt
C:\windowsbug\1.txt
C:\windowsbug\1B.txt
C:\windowsbug\2222222C.txt
C:\windowsbug\3333333A.txt
C:\windowsbug\5555555A.txt
C:\windowsbug\7777777B.txt
C:\windowsbug\11111111.txt
C:\windowsbug\22222222.txt
C:\windowsbug\33333333.txt
C:\windowsbug\44444444.txt
C:\windowsbug\66666666.txt
C:\windowsbug\00100000000.txt
C:\windowsbug\100000000.txt

Is there anyone who believes this is a correct or acceptable sort order? I can certify that I've worked on dozens of different systems over the past 50 years and never saw anything like this.
My System SpecsSystem Spec
30 Mar 2010   #5

Windows 7 Ultimate x86 build 7600 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
 
 

Quote   Quote: Originally Posted by Bruce Gomes View Post
AFAIK there is simply a bug in Windows 7 sorting file names, and I'm astonished that it hasn't been brought to light before now. Here's a list of files in Windows 7;

C:\windowsbug\00000000.txt
C:\windowsbug\1.txt
C:\windowsbug\1B.txt
C:\windowsbug\2222222C.txt
C:\windowsbug\3333333A.txt
C:\windowsbug\5555555A.txt
C:\windowsbug\7777777B.txt
C:\windowsbug\11111111.txt
C:\windowsbug\22222222.txt
C:\windowsbug\33333333.txt
C:\windowsbug\44444444.txt
C:\windowsbug\66666666.txt
C:\windowsbug\00100000000.txt
C:\windowsbug\100000000.txt

Is there anyone who believes this is a correct or acceptable sort order? I can certify that I've worked on dozens of different systems over the past 50 years and never saw anything like this.
That is not a bug in Windows 7. The order is the same in Windows XP also.

Name:  File Order.JPG
Views: 1245
Size:  24.6 KB

EDIT: I'm not in my 7 machine right now. Will have to check it in the evening


My System SpecsSystem Spec
30 Mar 2010   #6

Windows 7 Ultimate (x64) SP1
 
 

Just did a test and you can see mine sorts perfectly...


Attached Thumbnails
File Sorting Problem-test.png  
My System SpecsSystem Spec
31 Mar 2010   #7

Windows 7
 
 

In the heat of the moment I certainly did not make myself clear. It's not a bug, it's wrong in Windows 7, Vista and XP *by design*. Microsoft feels they wanted to try to make the sort intelligent, and everyone in the computer field feels they're dead wrong. There were some "not so trivial" registry changes one could make in prior releases to correct this, but I haven't seen anything so definitive in Windows 7 for correcting this design error. I have thousands of files with names similar to the ones I listed, and I simply can't find my files anymore since the order is so jumbled. More importantly, anyone who feels Windows is doing this correctly please examine my list of files above. Microsoft simply did not consider the horrendous ramifications of their sort - I repeat my question, does ANYONE feel the sorted list above is acceptable? Let me also note that there's not a single other computer system that would sort files in this manner - so is Microsoft saying they're right and every other operating system since the beginning of time is wrong? It simply boggles the mind that Microsoft would do this - and not provide an easy or (at least) properly documented way to undo this.
Renaming my files is not an option; software and scripts logically relate the files using the current naming conventions.
My System SpecsSystem Spec
31 Mar 2010   #8

Windows 7 Ultimate x64, Mint 9
 
 

In case you didn't notice, everyone else's files are sorted correctly.... Therefore you calling this deliberate is false.

~Lordbob
My System SpecsSystem Spec
31 Mar 2010   #9

win7
 
 

I think a very simple solution is, just rename your file with same long character.
eg : file01, file02, file03 .. file99 or file0001, file0002, ... file9999
that's what I do ...

My System SpecsSystem Spec
01 Apr 2010   #10

Windows 7 Ultimate x64
 
 

The is noting wrong with the way Windows 7 is sorting the files. Allow me to explain, and perhaps you can stop making claims that are untrue. First, I want you to examine the following screenshot:

File Sorting Problem-sorting_problem.jpg

I recreated the files you are using to make your claim, and this is what I've discovered:

Windows Explorer will attempt to sort filenames using correct alphabetical sorting, and also attempts to extrapolate numbers in the file names. In other words, it uses correct Alpha/Numeric sorting. If you look closely at your filenames as displayed in Windows Explorer, you will see that they are sorted in numerical order.

However, if you look at the same listing of files within the command prompt (sorted by name), then the listing is different. That is because the command line, and indeed older operating systems, don't correctly sort alphanumerically, they sort using the ASCII codes of the characters in the filenames. In ASCII, the numbers "0 - 9" are represented using the codes 48 - 57, while "a - z" is represented using 97 - 122, and "A - Z" are 65 - 90. This is why in the command line sort (using your example filenames) the file "22222222.txt" is listed before "222222C.txt".

I believe the sorting mechanisms of the Windows Explorer GUI are correct, as it distinguishes correctly between letters and numbers.


My System SpecsSystem Spec
Reply

 File Sorting Problem




Thread Tools



Similar help and support threads for2: File Sorting Problem
Thread Forum
Batch File Sorting General Discussion
file sorting General Discussion
File sorting - limited to one level now? General Discussion
File Sorting General Discussion
File Sorting issue bugging me General Discussion
Sorting problem General Discussion
WordPerfect X4 file sorting Software

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:53 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33