Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!gdavis From: gdavis@primate.wisc.edu (Gary Davis) Newsgroups: comp.sys.mac.hypercard Subject: Re: Complex sorting in Supercard 1.5 Message-ID: <4536@uakari.primate.wisc.edu> Date: 19 Jun 91 04:50:43 GMT References: Sender: news@primate.wisc.edu Reply-To: gdavis@primate.wisc.edu Lines: 14 From article , by mg2x+@andrew.cmu.edu (Michael Andrew Gelman): > I've got this stack that has four fields on it, F1...F4. I need the > stack sorted by all the fields, that is first by F1, then by F2, etc. > > Here's the trick. F3 and F4 are sometimes text and sometimes numeric. Oops, I just saw Andy Stadler's reply to your post pointing out that the sort in HyperCard is stable. I had assumed that you meant that the fields might contain a mixture of text and numbers at one time. If not, then you wouldn't need to use the "function" sort I described. Gary Davis