The way XP sorts files by name...

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Puritan

Thread Starter
Joined
Feb 14, 2001
Messages
242
This is a really silly little nit, but I was wondering if anyone knew this... in previous versions of Windows, a file that was shorter came alphabetically before any file with the same name with a suffix; MYDOC.doc would come alphabetically before MYDOC2.doc, for example. But in XP, suffixes come before shorter names, so if I was sorting my files by name, I'd see MYDOC2.doc, MYDOC3.doc, MYDOC4.doc, etc. and then after all of that MYDOC.doc. I'm not sure why this is -- I thought it might be because extensions are no longer treated separately from the filename in XP and the period might just come after letters and numbers alphabetically, but that's not the case either, since a period is 0x2E in ASCII and a zero is 0x30.

Is there any way to get XP to sort file names "properly", i.e. shorter file names before longer ones with suffixes?
 

Brooks

Guest
Joined
Oct 30, 2001
Messages
2,323
I must say, I never noticed that before. If I see or hear of anything on how to change that, I will post that here.

The annoyance that gets me is that when mapping network drives through the gui, it always presents the last available drive letter instead of the first available.

So the first time I mapped my server drives to my workstation, I had the servers c: drive on z:, the d: drive on y, and the e drive on x:
 
Joined
Feb 13, 1999
Messages
8,974
I agree XP does some strange things. I could not find anything on the sort order used by Explorer for file names. But intererstly SORT and DIR /O does sort correctly. As like Brooks if I run across anything in the future I will let you know.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top