extremely weird and frustrating...
Mark Schonewille
m.schonewille at economy-x-talk.com
Wed Apr 2 04:55:30 EDT 2014
Larry,
I looked at this again. If I use the following script
on mouseUp
set the twelveHourTime to true
put fld 1 into myList
set the itemDel to colon
sort lines of myList descending numeric dateTime
put myList into fld 2
end mouseUp
I get this result:
16:33
15:56
12:16
11:35
9:14
7:47
2:08
1:22
25:34
34:55
which indicates that invalid times are simply not sorted. There are only
24 hours in a day and 24 and higher are invalid numbers for hours.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Installer Maker for LiveCode:
http://qery.us/468
Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi
LiveCode on Facebook:
https://www.facebook.com/groups/runrev/
On 4/2/2014 09:41, larry at significantplanet.org wrote:
> Here is my script line:
> sort field myTimes descending dateTime
>
>
> And here is the result:
> 16:33
>
> 15:56
>
> 12:16
>
> 11:35
>
> 9:14
>
> 7:47
>
> 2:08
>
> 1:22
>
> 25:34
>
> 34:55
>
>
>
> Here is my other script line:
>
> sort field myTimes ascending dateTime
>
> And here is the result for that:
>
> 25:34
>
> 34:55
>
> 1:22
>
> 2:08
>
> 7:47
>
> 9:14
>
> 11:35
>
> 12:16
>
> 15:56
>
> 16:33
>
>
>
> Seriously?
More information about the use-livecode
mailing list