Sorting marked cards

Jan Schenkel janschenkel at yahoo.com
Tue Jun 22 03:58:15 EDT 2004


--- David Squance <squance at elkvalley.net> wrote:
> I have a stack with a number of active cards and a
> few 'spares' which are
> like templates.  The active cards are marked.  I
> have a button which sorts
> the cards by a particular field (empty on the
> spares).  The sort button is
> expected to only sort the active cards--the script
> says "sort marked cards
> ...."  The docs say "The sort command is a stable
> sort. This means that if
> the sortKey for two cards is the same, sorting does
> not change their order
> ...."  Does this not apply to the mark property? 
> The cards with the empty
> sort field are coming first, which is not what I
> want.
> Dave
> 

Hi Dave,

I think the engine is evaluating this alphabetically,
where 'false' is smaller than 'true' -- try sort
descending.

Hope this helped,

Jan Schenkel.

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


		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 


More information about the use-livecode mailing list