MatthewMaynard.net Banner
Merry Christmas

[Previous entry: "Here comes the third Matrix flick"] [Main Index] [Next entry: "Howard Dean is in the Wall Street Journal"]

Links
Topics
Glossary
Archives
Contact
BOTW Scorecard

Powered By Greymatter

Current Homeland Security Alert Level

CPU Brain Candy

RSS 1.0 FEED

Hand over the cash and no bytes get hurt.

Site Meter

Listed on BlogShares

This page contains valid HTML 4.01 code.

08/21/2003 Entry: "Sorting out Windows XP"
Posted by Maynard @ 09:42 AM MST

Blue Bar

Programming
Sorting out Windows XP

Which comes first - 2 or 10? 2, if you're sorting numerically. But if you're sorting alphabetically, 10 comes first, because of the way Windows sorts things (like filenames).

Or more specifically, how Windows used to sort things.

Windows used to sort a set of files like this: file1.txt file10.txt file2.txt. In Windows XP they are sorted file1.txt file2.txt file10.txt. This is a somewhat discomforting surprise if you haven't run across it yet, but there is a fix, if you like the old style (for whatever reason, like you have to support a legacy program that expects a particular sorting).

In the registry, find the key HKEY_LOCAL_ MACHINE\Software\Microsoft\Windows\ CurrentVersion\Policies\Explorer. Then find or create a DWORD value named NoStrCmpLogical. Set its value to 1. Props to ZDNet and Neil Rubenking for the heads-up, even it it is a post-dated article.

Blue Bar

Add A New Comment

Name

E-Mail (optional)

Homepage (optional)

Comments

Powered By Greymatter

This site is copyright 2001-2004 by Matthew Maynard. All rights reserved. All your trademarks, copyrights, insignia, and other distinguishing characteristics are belong to you. Sharks in suits make for good joke material. Don't leave a mess on your way out.

Links to external websites are valid at the time of article authoring and may decay as time goes by. But we'll always have Paris.

The opinions on this site are those of their author and do not represent anyone else's views. That is, unless and until you agree with them, at which point they become yours as well. Opinions expressed in the comments belong to the comment poster and may be edited for content. Play nice with others, since you want them to play nice with you.