Bizarre Number Sort of Files Mac

PEL simplsol at aol.com
Fri Mar 9 19:46:45 CET 2018


When you add text to a number, it ceases to be a number.

If you had a space between 01-11-04-09-_2018 and the rest of the line you might be able to 

sort lines of field “TheFiles” dateTime ascending by word one of each


Paul Looney

> On Mar 9, 2018, at 10:31 AM, Sannyasin Brahmanathaswami via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> On Mac, on disk,  you will finder files in order
> 
> _categories.txt
> _date.txt
> _title.txt
> 01-11-04-09-09_2018-Noni-Building-Blessing.jpg
> 01-11-04-09-09_2018-Noni-Building-Blessing.txt
> 02-02-10-02-03_2018-Noni-Building-Blessing.jpg
> 02-02-10-02-03_2018-Noni-Building-Blessing.txt
> 03-06-01-10-10_2018-Noni-Building-Blessing.jpg
> 04-09-09-08-08_2018-Noni-Building-Blessing.jpg
> 04-09-09-08-08_2018-Noni-Building-Blessing.txt
> 05-05-02-12-12_2018-Noni-Building-Blessing.jpg
> 06-12-05-03-02_2018-Noni-Building-Blessing.jpg
> 06-12-05-03-02_2018-Noni-Building-Blessing.txt
> 07-07-12-07-07_2018-Noni-Building-Blessing.jpg
> 07-07-12-07-07_2018-Noni-Building-Blessing.txt
> 08-10-03-04-04_2018-Noni-Building-Blessing.jpg
> 08-10-03-04-04_2018-Noni-Building-Blessing.txt
> 09-08-06-06-06_2018-Noni-Building-Blessing.jpg
> 09-08-06-06-06_2018-Noni-Building-Blessing.txt
> 10-03-11-05-05_2018-Noni-Building-Blessing.jpg
> 10-03-11-05-05_2018-Noni-Building-Blessing.txt
> 11-01-07-11-11_2018-Noni-Building-Blessing.jpg
> 11-01-07-11-11_2018-Noni-Building-Blessing.txt
> 12-04-08-01-01_2018-Noni-Building-Blessing.jpg
> 12-04-08-01-01_2018-Noni-Building-Blessing.txt
> gallery-story.txt
> 
> Now when open that for file import, I see in the dialogue (dimmed) 
> 
> 04-09-09-08-08_2018-Noni-Building-Blessing.jpg
> 02-02-10-02-03_2018-Noni-Building-Blessing.txt
> 11-01-07-11-11_2018-Noni-Building-Blessing.jpg
> 09-08-06-06-06_2018-Noni-Building-Blessing.txt
> 01-11-04-09-09_2018-Noni-Building-Blessing.jpg
> 12-04-08-01-01_2018-Noni-Building-Blessing.txt
> 11-01-07-11-11_2018-Noni-Building-Blessing.txt
> 02-02-10-02-03_2018-Noni-Building-Blessing.jpg
> 04-09-09-08-08_2018-Noni-Building-Blessing.txt
> 01-11-04-09-09_2018-Noni-Building-Blessing.txt
> 09-08-06-06-06_2018-Noni-Building-Blessing.jpg
> 12-04-08-01-01_2018-Noni-Building-Blessing.jpg
> 10-03-11-05-05_2018-Noni-Building-Blessing.txt
> .DS_Store
> 06-12-05-03-02_2018-Noni-Building-Blessing.jpg
> 07-07-12-07-07_2018-Noni-Building-Blessing.txt
> _categories.txt
> _title.txt
> 08-10-03-04-04_2018-Noni-Building-Blessing.txt
> _date.txt
> gallery-story.txt
> 07-07-12-07-07_2018-Noni-Building-Blessing.jpg
> 10-03-11-05-05_2018-Noni-Building-Blessing.jpg
> 06-12-05-03-02_2018-Noni-Building-Blessing.txt
> 03-06-01-10-10_2018-Noni-Building-Blessing.jpg
> 08-10-03-04-04_2018-Noni-Building-Blessing.jpg
> 05-05-02-12-12_2018-Noni-Building-Blessing.jpg
> 
> now, put those files into a field, with still get the "amazing" order… 
> 
> on mouseup
>     sort lines fld "theFiles" ascending numeric 
> end mouseup
> 
> I get the  same result?  It is in "ascending numeric" does see the files at all?
> 
> If I sort lines by
> 
> on mouseup
> sort lines fld "theFiles" ascending text
> end mouseup
> 
> Then they they same as finder. 
> 
> 
> Try again, to sort of line by ascending number file, does not changes files …
> do not change from the text sort which remain into the order "ascending text"
> 
> What is going on? It seems that the ascending numeric, just doesn’t see the files at all?
> 
> BR
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list