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

[REBOL] A bug in sorting on dates/times?

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 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?