Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!n8emr!cmhgate!f200.n226.z1.FIDONET.ORG!Barry.Chern
From: Barry.Chern@f200.n226.z1.FIDONET.ORG (Barry Chern)
Newsgroups: comp.sys.mac.hypercard
Subject: re: multi-level sorting ?
Message-ID: <19370.24E559F3@cmhgate.FIDONET.ORG>
Date: 12 Aug 89 08:16:20 GMT
Sender: ufgate@cmhgate.FIDONET.ORG (newsout1.26)
Organization: FidoNet node 1:226/200 - Aurora Borealis, Gahanna Oh
Lines: 18

It is very easy to do multi-level sorts with HyperCard, although they are
either somewhat confusing or somewhat slow. You can say "sort by field one 
and field two" but only if the information in the two fields is totally
consistent, as in numbers with the same number of digits or words with at
least as long as is significant to the sort, as the fields will be
concatenated and then sorted.
The pure way to do it is to do one sort and then another, with the least
significant sort done first. In other words, the opposite of the order you 
think it should be done in:
    sort by word two of field name
    sort by field zip
This should give you just what you want.


--  
Barry Chern via cmhGate - Net 226 fido<=>uucp gateway Col, OH
UUCP: ...!osu-cis!n8emr!cmhgate!200!Barry.Chern
INET: Barry.Chern@f200.n226.z1.FIDONET.ORG