Just to be clear, it's not my function, it came from someone else on the list.
It could easily be revised to handle the case of cr's within data chunks,
though.
-- Peter
Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig
On Dec 11, 2015, at 6:51 PM, Alex Tweedly wrote:
>
> I
On Sat, Dec 12, 2015 at 7:40 AM, Peter M. Brigham wrote:
> Just to be clear, it's not my function
I got that.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage
I'll take another swing at the horse. My objection to this handler/function
at this point is that it's replacing (at most) six lines of code:
put the itemDel into savedDelimiter
set the itemDel to someDelimiter
combine someArray with someDelimiter
sort items of someArray
split someArray with
At this point probably beating a dead horse, but here's a cleaned up handler
that handles cr's in the data. Geoff is right that the basic idea can be done
in 3 lines, but this automates choosing an alternate delimiter and specifying
the sort mode in a one-line call.
The original handler came
I haven't read everything in this thread, so I don't know if Peter's
function handled this or not ...
On 11/12/2015 23:32, Geoff Canyon wrote:
On Thu, Dec 10, 2015 at 12:47 PM, Peter Brigham wrote:
Someone on this list at some point posted an array sorting function that
On Thu, Dec 10, 2015 at 12:47 PM, Peter Brigham wrote:
> Someone on this list at some point posted an array sorting function that
> might be relevant here for some applications. See below.
>
Why would anyone make a separate handler for this, and even more so, why
make it a
On Fri, Dec 11, 2015 at 6:51 PM, Alex Tweedly wrote:
>
> I haven't read everything in this thread, so I don't know if Peter's
> function handled this or not ...
>
> On 11/12/2015 23:32, Geoff Canyon wrote:
>
>> On Thu, Dec 10, 2015 at 12:47 PM, Peter Brigham
If the keys are numerical, you can just drop it into a datagrid and sort on the
column you want.
Bob S
On Dec 10, 2015, at 09:47 , Peter Brigham
> wrote:
Someone on this list at some point posted an array sorting function that
might be relevant here
Someone on this list at some point posted an array sorting function that
might be relevant here for some applications. See below.
-- Peter
Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig
"Why is the alphabet in that order? Is it because of that song?"
-- Steven
You can get the keys of an array and sort them before accessing them. The array
itself cannot be sorted, and there would be no benefit to doing so that I can
see.
Bob S
On Dec 9, 2015, at 07:56 , Mike Bonner
> wrote:
I was just thinking how
I was just thinking how useful sort could be to find things (in an array or
whatever)
I took the example from the other (word sort) thread and did this..
(obviously it would make more sense to NOT be building the array on the fly
and use it on an existing one.)
local sDataArray
on mouseUp
put
11 matches
Mail list logo