Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

A bug in sorting on dates/times?

 [1/4] from: carl::cybercraft::co::nz at: 17-Sep-2000 21:54


I think I've found a bug in 'sort when it's sorting a block of dates. (This is using the experimental Amiga version of REBOL/View 0.10.31.1.1.) With two files saved as file1 and file2, this is what I get when I enter the following...
>> dates: []
== []
>> insert dates modified? %file1
== []
>> insert dates modified? %file2
== [10-Sep-2000/18:24:02-5:00]
>> dates
== [10-Sep-2000/18:24:13-5:00 10-Sep-2000/18:24:02-5:00]
>> sort dates
== [10-Sep-2000/23:24:02-5:00 10-Sep-2000/23:24:13-5:00]
>> dates
== [10-Sep-2000/23:24:02-5:00 10-Sep-2000/23:24:13-5:00] Those first times returned by the dates block are correct, but notice how they've jumped from 18hrs... to 23hrs... after being sorted? Sort shouldn't alter what it's sorting, right? I've submitted this to feedback, but do others get similar results?

 [2/4] from: larry:ecotope at: 17-Sep-2000 14:03


Hi Carl Yup, I get the same thing. REBOL/View 0.10.33.3.1 10-Sep-2000 Copyright 2000 REBOL Technologies. All rights reserved. Type DEMO to run demo if it is disabled
>> dates: [10-Sep-2000/18:24:13-5:00 10-Sep-2000/18:24:02-5:00]
== [10-Sep-2000/18:24:13-5:00 10-Sep-2000/18:24:02-5:00]
>> sort dates
== [10-Sep-2000/23:24:02-5:00 10-Sep-2000/23:24:13-5:00]
>> dates
== [10-Sep-2000/23:24:02-5:00 10-Sep-2000/23:24:13-5:00]
>>
Also the same with latest experimental builds of Core and Command. -Larry

 [3/4] from: rryost:home at: 17-Sep-2000 16:41


I've just reported this same bug in REBOL/Core 2.3.0.3.1 the version for The Official Guide. Russell [rryost--home--com]

 [4/4] from: carl:cybercraft at: 18-Sep-2000 20:27


Thanks for the response. I guess it's pretty general across platforms then. Hopefully it only affects date sorting, as a work-around should be easy enough to do then. On 18-Sep-00, [rryost--home--com] wrote: