File sort ordering by date in windows explorer is inconsitent
I have an app that I wrote many years ago (originally VB6 and then ported to C# 1.1 and later 2.0)which pulls down chapters from fanfiction sites. I use this for offline reading or on the go with the files loaded on a PDA. On WinXP (or Win2003 or Palm Resco Explorer on my PDA) a filesort by date descending always put the last chapter downloaded at the top, and so on as each chapter is downloaded 1-3 seconds apart, the chapters at the end are always newer than earlier chapters. Taking the same folder and placing it on Win7 (or over a network drive map back to the XP system) the ordering appears somewhat arbitrary. The last chapter may appear as the 3rd or 4th from the top. I've also downloaded chapters from within Win7 and the same behavior: files do not sort by the full date/time and seem to be approximate for files within the same minute. Is this a known or unknown sortingissue? This behavior is somewhat frustrating as I will open the top most file and discover it is not actually the last chapter and then have to use the navigation provided in the current opened chapter to then navigate to the last chapter.ex. XP sort, date descchapter 10chapter 09chapter 08chapter 07and so onex. Win7 sort, date descchapter 08chapter 09chapter 10chapter 07and so on
August 31st, 2009 10:04pm

this is not inconsistent....the (first) zero comes before the (first) 1...and so onafter that the same rule applies for the second figure ... and so onso it is consistent, only in another way then you want it....
Free Windows Admin Tool Kit Click here and download it now
August 31st, 2009 11:48pm

Hi,Base on test on our test machines, files are sorted by seconds. In Windows 7, you can right click the files to view the exact created, accessed, modified time from the fileproperties. While you sort files by date, it is sorted by date modified time. If the files have the same date modified time, then windows sorts files by Name. I recommend you to check the date modified time of your files and perform the sort by date, see if it is consistent. Best Regards.Dale Qiao
September 2nd, 2009 12:46pm

As stated, each file is downloaded in order from chapters 1 to whatever the last chapter is, so the final chapter is newer than the first chapter. Each file is anywhere from1-5 seconds apart and sortingselected in explorer as date descending. As the later chapters are newer than earlier chapters, it is expected that the files will sequentially order in date descending order. Each chapter is always saved before attempting to retrieve the next chapter. This ordering is inconsistent as there is no file order preference being set on FILE NAME only DATE. When ordered by file name the order is as expected (chapters listed in sequential order either ASC or DESC), however, it is very hard to go to the latest chapters pulled/updated as the just downloaded file may be somewhere in the middle of several hundred files when sorted by file name ASC or DESC. This is why accurate DATE descending order is desirable.ex. XP sort, date descchapter 10.htm 10:30:50 AMchapter 09.htm 10:30:45 AMchapter 08.htm 10:30:42 AMchapter 07.htm 10:30:38 AMand so onex. Win7 sort, date descchapter 08.htm 10:30:42 AMchapter 09.htm 10:30:45 AMchapter 10.htm 10:30:50 AMchapter 07.htm 10:30:38 AMand so onOne frustrating factor: until a file is over 24 hours old, the advanced properties just show "Today, September 04, 2009, 12 minutes ago" instead of a full time stamp, after which it would read something like "Tuesday, September 01, 2009, 8:14:48 AM"and nowsome hard data:actual dates from a file harvest as collected by a VBS run against the folder contents: Past Mistakes68.htm 32.39 KB 9/4/2009 10:10:38 PM Past Mistakes69.htm 30.62 KB 9/4/2009 10:10:39 PM Past Mistakes70.htm 31.69 KB 9/4/2009 10:10:39 PM Past Mistakes71.htm 30.63 KB 9/4/2009 10:10:41 PM Past Mistakes72.htm 31.16 KB 9/4/2009 10:10:41 PM Past Mistakes73.htm 31.03 KB 9/4/2009 10:10:43 PM Past Mistakes74.htm 30.14 KB 9/4/2009 10:10:44 PM Past Mistakes75.htm 30.7 KB 9/4/2009 10:10:45 PM Past Mistakes76.htm 31.97 KB 9/4/2009 10:10:46 PM Past Mistakes77.htm 30.21 KB 9/4/2009 10:10:47 PM Past Mistakes78.htm 29.46 KB 9/4/2009 10:10:47 PM Past Mistakes79.htm 31.96 KB 9/4/2009 10:10:48 PM Past Mistakes80.htm 31.59 KB 9/4/2009 10:10:49 PM Past Mistakes81.htm 30.48 KB 9/4/2009 10:10:50 PM output of dos command c:\dir past*.htm /o:-d09/04/2009 10:10 PM 31,221 Past Mistakes81.htm09/04/2009 10:10 PM 32,352 Past Mistakes80.htm09/04/2009 10:10 PM 32,737 Past Mistakes79.htm09/04/2009 10:10 PM 30,174 Past Mistakes78.htm09/04/2009 10:10 PM 30,942 Past Mistakes77.htm09/04/2009 10:10 PM 32,746 Past Mistakes76.htm09/04/2009 10:10 PM 31,438 Past Mistakes75.htm09/04/2009 10:10 PM 30,864 Past Mistakes74.htm09/04/2009 10:10 PM 31,778 Past Mistakes73.htm09/04/2009 10:10 PM 31,908 Past Mistakes72.htm09/04/2009 10:10 PM 31,370 Past Mistakes71.htm09/04/2009 10:10 PM 32,455 Past Mistakes70.htm09/04/2009 10:10 PM 31,364 Past Mistakes69.htm09/04/2009 10:10 PM 33,175 Past Mistakes68.htmwindows explorer orderwhen sorting by date descendingPast Mistakes81Past Mistakes79Past Mistakes80Past Mistakes76Past Mistakes77Past Mistakes78Past Mistakes74Past Mistakes75Past Mistakes73Past Mistakes71Past Mistakes72Past Mistakes68Past Mistakes69Past Mistakes70Past Mistakes67
Free Windows Admin Tool Kit Click here and download it now
September 4th, 2009 10:08pm

Hi,Please run the following commands to see if it works.1) Run a command prompt with administrator privilege.2) Run the following commands:C:\>fsutil behavior query DisableLastAccessIf you get "DisableLastAccess = 1" it has been disabled. You can enable it by entering: C:\>fsutil behavior set DisableLastAccess 0Then restart the computer to sort these files by date again and see how it works.Best Regards.Dale Qiao
September 7th, 2009 7:04am

I don't know what the above commands were supposed to accomplish..."to see if it works" - see if what works???I performed the commandsand the command said to reboot to make the change take effect.So I rebooted and still get the inconsistent sorting and still get advanced properties like "Today, September 07, 2009, 11 minutes ago" when attempting to view recently modified files.The order is the same whether there are 800 files or 40 files in the folder with date descending sort.another set - actual dates as detected by VBS. Harry McGonagall29.htm 66.41 KB 9/7/2009 1:28:34 PM Harry McGonagall30.htm 38.32 KB 9/7/2009 1:28:35 PM Harry McGonagall31.htm 84.75 KB 9/7/2009 1:28:37 PM Harry McGonagall32.htm 55.16 KB 9/7/2009 1:28:39 PM Harry McGonagall33.htm 55.92 KB 9/7/2009 1:28:41 PM Harry McGonagall34.htm 54.33 KB 9/7/2009 1:28:42 PM Harry McGonagall35.htm 44.81 KB 9/7/2009 1:28:44 PM Harry McGonagall36.htm 44.23 KB 9/7/2009 1:28:45 PM Harry McGonagall37.htm 40.23 KB 9/7/2009 1:28:47 PM DOS order, from command c:\dir harr*.htm /o:-d09/07/2009 01:28 PM 41,202 Harry McGonagall37.htm09/07/2009 01:28 PM 45,294 Harry McGonagall36.htm09/07/2009 01:28 PM 45,887 Harry McGonagall35.htm09/07/2009 01:28 PM 55,644 Harry McGonagall34.htm09/07/2009 01:28 PM 57,272 Harry McGonagall33.htm09/07/2009 01:28 PM 56,490 Harry McGonagall32.htm09/07/2009 01:28 PM 86,793 Harry McGonagall31.htm09/07/2009 01:28 PM 39,242 Harry McGonagall30.htm09/07/2009 01:28 PM 68,013 Harry McGonagall29.htmWindows explorer sort order (date desc) in Win7:Harry McGonagall37Harry McGonagall35Harry McGonagall36Harry McGonagall34Harry McGonagall33Harry McGonagall32Harry McGonagall31Harry McGonagall29Harry McGonagall30
Free Windows Admin Tool Kit Click here and download it now
September 7th, 2009 9:50pm

I've built out a second system. Same problem exists, sort by date descending is not an accurate sort from windows explorer. Whenever there are only a few seconds between files, the top most file in a date descending is not always the newest file, and many intermediary files are also out of order. On the same disk when read from XP or 2003 the sort is accurate, when sorted under many Linux flavors, it is accurate (openSuse, Fedora, CentOS, Ubuntu, Mint, etc.)
October 30th, 2009 5:56pm

Howdee, I had excactly the same problem, but different. I could not display the filenames in any Win 7 folder in Date / Reversed Date order. Until I right-clicked the "Date" column Header and found there was another Date column "Date Modified" and this column provided me with the solution. Not that this is your solution, but it may help you along the way. Cheers
Free Windows Admin Tool Kit Click here and download it now
November 3rd, 2010 11:50am

I have the same problem and I'm using Windows 7. Whenever I use "sort by date" in any of my folders to rearrange pictures, or any sort of file for that matter some of the recent files come out on top (or on the bottom depending if I selected descending or ascending) but some other, for no apparent reason end up at random places in the middle of other older files. For example, I saved a picture on November but it ended up between these two: October-‎20-‎10, ‏‎1:06:45 AM November-‎10-‎10, ‏‎12:57:56 AM October-‎20-‎10, ‏‎11:21:42 AM I'm not kidding this is a way off! I never had that kind of problem with Windows XP There's also the problem of the search engine inside windows which fails 50% of the time to find what your looking for, I know that's not the subject but I'm just throwing that out there... Just saying that you guy kinda failed pretty hard with that... But hey you still got my love more than Apple :3 (But please fix those darn bugs -_-") Thanks :P
November 11th, 2010 11:06pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics