Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!emory!mephisto!mcnc!ecsgate!ecsvax!dlugose From: dlugose@uncecs.edu (Dan Dlugose) Newsgroups: comp.sys.mac.hypercard Subject: Re: Sorting by multiple fields Message-ID: <1990Sep3.140709.16158@uncecs.edu> Date: 3 Sep 90 14:07:09 GMT References: <1609@luth.sm.luth.se> <41691@sequent.UUCP> Organization: UNC Educational Computing Service Lines: 19 In article <41691@sequent.UUCP> johnv@eng2.UUCP (John VanZandt) writes: >I want to sort a stack by multiple fields, with a major and several minor >sort fields. How can this be done? The simplest sort method would be consecutive sort commands in the reverse order of importance. For example, if you had a stack of student grades in the range A..F, class 1..5 , and you wanted the main division to be grades, first all A's, within that sorted by class 1..5, within that sorted by last name, this would work: sort by field "last name" sort by field "class" sort by field "grade" -- Dan Dlugose Internet: dlugose@uncecs.edu UNC Educational Computing Service Box 12035, Research Triangle Park, NC 27709-2035