[comp.sys.mac.hypercard] I wanna new sort

jgsmith@watson.bcm.tmc.edu (James G. Smith) (07/20/90)

What I think would be a really great XCMD for wanna you cool people to write
would be one that not only sorted a container, but performed the matching
re-ordering on a separate container.  I use hypertext indices in which each
item is associated with the name of a card (id actually) in a hidden field.
When info is added, the index must be resorted, and so the card id's in the
reference fld must be appropriately rearranged.  I do this in scripting now,
which means slow.

An alternative to actually sorting the other container is for the XCMD to 
return some sort of map as to how the sorting was done.

*
(Any takers?)

taylorj@yvax.byu.edu (07/27/90)

In <1413@gazette.bcm.tmc.edu>, jgsmith@watson.bcm.tmc.edu (James G. Smith) asks
for a nice sort X-command that will allow coordinated sorting of additional
containers.

No sooner said than done.  Actually, done sooner than said.

You need Frederic Rinaldi's "fullSort" XFCN.  It can return an indexed list of
how the elements were sorted, and can even sort other containers for you if
you give it back the list.  Has lots of other really nice features.  Should
be available in net archives, and is also on the Developer's Helper CD-ROM "A
Disc Called Wanda."  If you can't find it anywhere I suppose I could be
convinced to mail or post it.


Jim Taylor
Microcomputer Support for Curriculum   |
Brigham Young University               |   Bitnet: taylorj@byuvax.bitnet
101 HRCB, Provo, UT  84602             |   Internet: taylorj@yvax.byu.edu