sort command in windows xp dos

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using Windows XP's dos window to sort song titles within a text file using the "sort" command. The sorted file that is produced lists contractions before single letters. Example: I've Got You Under My Skin comes before I Am I Said. How can I reverse this? I think it has something to do with the country code and code pages (I live in the U.S.), but I tried adding them to the config.nt file with no luck. I never had a similar problem doing this with Windows 95's dos. Thanks.
 
Paul Brandt said:
I'm using Windows XP's dos window to sort song titles within a text file
using the "sort" command. The sorted file that is produced lists
contractions before single letters. Example: I've Got You Under My Skin
comes before I Am I Said. How can I reverse this? I think it has something
to do with the country code and code pages (I live in the U.S.), but I tried
adding them to the config.nt file with no luck. I never had a similar
problem doing this with Windows 95's dos. Thanks.
-----------------------------------

Use the following syntax to over ride the default language/country/region
setting:

sort /l C <file1.dat >file2.dat

Note that the option switch is a lowercase "L", the "C" is a capital "C",
and a space must follow the /l. Type sort /? at the command prompt for
help, or checkout

http://www.microsoft.com/technet/tr...echNet/prodtechnol/winxppro/proddocs/sort.asp
 
----- Ron Avanzino wrote: -----

Paul Brandt said:
I'm using Windows XP's dos window to sort song titles within a text file
using the "sort" command. The sorted file that is produced lists
contractions before single letters. Example: I've Got You Under My Skin
comes before I Am I Said. How can I reverse this? I think it has something
to do with the country code and code pages (I live in the U.S.), but I tried
adding them to the config.nt file with no luck. I never had a similar
problem doing this with Windows 95's dos. Thanks.
-----------------------------------

Use the following syntax to over ride the default language/country/region
setting:

sort /l C <file1.dat >file2.dat

Note that the option switch is a lowercase "L", the "C" is a capital "C",
and a space must follow the /l. Type sort /? at the command prompt for
help, or checkout

http://www.microsoft.com/technet/tr...echNet/prodtechnol/winxppro/proddocs/sort.asp


Ron
Thanks a lot. It worked finally. I had tried this before in the directory where I had my file to be sorted, and I kept getting "incorrect MS-DOS version." When I moved the file to the folder where the dos window opens (documents and settings\owner), it allowed me to sort the file using the /l C switch. I could not even open the help commands in the original folder without getting the incorrect DOS version. Just to satisfy my curiosity, I renamed the original folder and tried sort /? but I still got incorrect dos version. I then created a new folder with the same name as the original, and moved all the files from the original folder into the new folder. Now both the sort/l C and sort /? commands work and I am able to sort the file correctly. Apparently, something in the original folder prevented me from using these commands. Anyway, thanks again for your help, and if you can figure out a way to make the over ride permanent, please let me know.
 
Back
Top