Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!jkc From: jkc@Apple.COM (John Kevin Calhoun) Newsgroups: comp.sys.mac.hypercard Subject: Re: sorting problems (was: Why?) Message-ID: <50929@apple.Apple.COM> Date: 28 Mar 91 20:26:35 GMT References: <120@lake.scar.toronto.edu> <50903@apple.Apple.COM> <56786@siemens.siemens.com> Distribution: na Organization: Apple Computer Inc., Cupertino, CA Lines: 19 In article <56786@siemens.siemens.com> fwb@pollux.tmc.edu (Fred Brehm) writes: > >One of Mr. Barek's requests could be fulfilled by a command like > > sort lines of container by item 2 descending numeric > ^^^^^^^^^ >but HyperCard 2.0v2 doesn't have this. > >There are work-arounds to both of these things using HyperTalk, but they >are pretty ugly. An XFCN or XCMD would probably work much faster. There's an XFCN called SortFieldByItem by Roger Brown in the Dartmouth XCMDs that sorts the lines of fields alphabetically by any item within the line. Source code is included. Kevin Calhoun HyperCard Team Apple Computer, Inc.