sort lines by length

Mark Wieder mwieder at ahsoftware.net
Wed Sep 24 11:15:45 EDT 2014


Dave-

Wednesday, September 24, 2014, 1:37:19 AM, you wrote:

> I have no strong opinion on this. The response to your request
> made some sense to me, as it would apply only to certain built-in
> functions that can only return a numeric value. So there would be
> some inconsistency, and also possible confusion if trying to sort on
> a custom function that *I know* always returns a numeric value, but
> the engine doesn't.

The bug report response makes *some* sense to me as well. But it's a
frequent source of confusion. The pedantic approach of specifying a
numeric sort works, of course, and it makes sense in hindsight. But it
should still be possible to tweak the sort routine so that if the
value being presented is a number it would force a numeric sort unless
specified otherwise in the command.

> I guess one case when you might want to sort alphabetically on
> length() is when demonstrating the behaviour of the sort command. :-)

LOL.

-- 
-Mark Wieder
 ahsoftware at gmail.com

This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not 
consent to the retrieving or storing of this communication and any 
related metadata, as well as printing, copying, re-transmitting, 
disseminating, or otherwise using it. If you believe you have received 
this communication in error, please delete it immediately.





More information about the use-livecode mailing list