Hi Dennie,

Dennie Hoopingarner wrote:
> 
> One of the more frequent questions that I get from people to whom I
> introduce Metacard is: how do you sort cards in a stack?  The feature of
> Powerpoint to show you a birds-eye view of your file, and be able to
> arrange the slides by dragging and dropping would be a nice feature to have
> in Metacard.  It seems that Metacard does not have feature, so can anyone
> help me out with a relatively easy way to sort cards?
> 

There's no GUI of the kind you describe, but there's a script interface
to almost any kind of functionality you can imagine, including sorting
cards. The "sort" command card in the MetaTalk Reference stack (MC
2.2.5) says this about it:
-------------------- start --------------------
sort [ [ [ marked ] cards of ] <stack> [ <dir> ] [ <key> ] [ by <exp> ]

The sort command sorts either the cards in a stack or the lines or items
in a container.  <dir> is either "ascending" or "descending" with
"ascending" being the default.  <key> is either "datetime", "text" or
"numeric" with "text" being the default.  <exp> can be any expression
which differentiates the cards or chunks in a container.  For example,
to sort the cards of a stack by a particular field treating the contents
of each field as a number, you would use something like:
sort cards numeric by field "amount"
-------------------- end ----------------------
There's a lot more there about sorting, but this is the part that talks
about sorting cards.

If you just want to move an occasional card from, say, the 14th spot in
the stack to the 3rd spot, you can do this:
    set the number of card 14 to 3

With these tidbits (and a few others), you can probably create the
interface you want!
HTH,
Phil


> Thanks!
> 
> Dennie
> 
> Dennie Hoopingarner
> Assistant Director for Technology Implementation
> Center for Language Education And Research
> Michigan State University
> [EMAIL PROTECTED]
> http://clear.msu.edu/dennie
> 
> This is the MetaCard mailing list.
> Archives: http://www.mail-archive.com/metacard%40lists.best.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm

-- 
Phil Davis
------------------
[EMAIL PROTECTED]

This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm

Reply via email to