Sorting...Is it just me?
janschenkel at yahoo.com
Wed Oct 6 03:20:32 CDT 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
> Sort cards of stack "aStack" by the name of this
> 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
> Anyone else think this is bizarre?
> Rant over...
> Mark Smith
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 ?
"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!
More information about the use-livecode