Sorting...Is it just me?

Jan Schenkel janschenkel at yahoo.com
Wed Oct 6 04:20:32 EDT 2004


--- Mark Smith <mark at maseurope.net> wrote:
> I've just spent an infuriating hour trying to figure
> out the strange 
> results of trying to sort a stack using the name of
> each card as the 
> key. Searching the list (with Mark Weiders excellent
> Archive Search 
> stack) has finally solved the problem, but I'm
> astonished....
> 
> Sort cards of stack "aStack" by the name of this
> card......"THIS 
> card"?????
> 
> I've been xTalking for more than ten years, and this
> form would never 
> have occurred to me in a million...
> 
> I mean, we wouldn't use:
> 
> Sort lines of fld "myField" by item 1 of this line
> 
> would we? Well of course we can't, quite rightly.
> 
> Surely "sort cards of stack "myStack" by name" or
> "by name of each" 
> would be more consistent.
> Even the "english-like" nature of transcript is
> twisted by the current 
> form.
> 
> Anyone else think this is bizarre?
> 
> 
> Rant over...
> 
> Mark Smith
> 

Hi Mark,

While I can understand you find it counter-intuitive,
it's mainly because "this card" is a synonym for "the
current card" ; so slightly changing your code into :
--
   sort cards of stack "aStack" \
        by the name of the current card
--
This version does exactly the same, but its purpose is
much clearer, isn't it ?

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


More information about the use-livecode mailing list