Path: utzoo!attcan!uunet!oddjob!uwvax!rutgers!rochester!pt.cs.cmu.edu!cat.cmu.edu!ns From: ns@cat.cmu.edu (Nicholas Spies) Newsgroups: comp.sys.mac.hypercard Subject: SORT changed in HC 1.2 Message-ID: <1923@pt.cs.cmu.edu> Date: 13 Jun 88 15:30:32 GMT References: <56261@sun.uucp> Sender: netnews@pt.cs.cmu.edu Distribution: comp Organization: Carnegie-Mellon University, CS/RI Lines: 25 Time was, in HyperCard 1.0.1 and 1.1, that you could pass a function as the "with" parameter to sort, as well as chunk expressions. It seems that HyperCard 1.2 doesn't like this, and instead puts up and error dialog saying something to the effect that "xx is an invalid expression on every card". The value of passing a function to sort is that you used to be able to perform parsing and concatenation of strings used as the sort keys. For instance, if you want to sort a stack of names by last name, and yet want the first and optional second and third names to be significant in the sort, and at the same time ignore any instances of "Jr", chunk expressions just won't suffice--you need to write a function to message the names into the desired order before they are looked at by sort, which sorts them. Although using a function as the sort parameter was not documented, it worked fine in 1.0.1 and 1.1, and it is a consistant generalization of using "&" to concatentate chunk expressions for sort (which is how I found out that it worked in the first place). I can't imagine why this capability was removed in 1.2, and sincerely hope that it is reinstanted, and documented, in future versions. -- Nicholas Spies ns@cat.cmu.edu.arpa Center for Design of Educational Computing Carnegie Mellon University