extremely weird and frustrating...

Mark Schonewille m.schonewille at economy-x-talk.com
Wed Apr 2 04:52:55 EDT 2014


John,

There's no need to use a repeat loop:

on mouseUp
    put fld 1 into myList
    set the itemDel to colon
    sort lines of myList numeric by item 2 of each
    sort lines of myList numeric by item 1 of each
    put myList into fld 2
end mouseUp

--
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 10:25, larry at significantplanet.org wrote:
> Thanks John,
> I'm not trying to be "cheeky" but I am frustrated.  Sorry Alex.
>
> John, what you propose may work - haven't tried it yet.
> However, that still does not explain why WITHOUT the 0 in front of it,
> 9:14 was listed before 11:35 in my ascending sort. And just FYI, those
> are minutes and seconds I'm using and not hours and minutes.
>
> My point is that it seems to me that the dateTime sort does not work
> properly.  What you proposed is a workaround because dateTime does NOT
> work properly, right?
>
> ----- Original Message ----- From: "John Dixon" <dixonja at hotmail.co.uk>
> To: "How to use LiveCode" <use-livecode at lists.runrev.com>
> Sent: Wednesday, April 02, 2014 2:15 AM
> Subject: RE: extremely weird and frustrating...
>




More information about the use-livecode mailing list