Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!plaid!chuq From: chuq%plaid@Sun.COM (Chuq Von Rospach) Newsgroups: comp.sys.mac.hypercard Subject: Find vs. Sort Message-ID: <32530@sun.uucp> Date: Fri, 30-Oct-87 18:25:04 EST Article-I.D.: sun.32530 Posted: Fri Oct 30 18:25:04 1987 Date-Received: Wed, 4-Nov-87 23:17:43 EST Sender: news@sun.uucp Lines: 40 I've found an interesting inconsistency in hypercard. Fortunately, it works to my advantage, but it gave me some consternation before tracked it down, so I thought I'd warn folks about it. I have a multi-background stack that I want to put in a certain order. To do this, I've created a background field on each stack called "Key-Index" and I put a value into this that tells the sort command what order to put the cards. If I then do a: Sort by background field "Key-Index" everthing is fine. The fun comes with find. While sort will use "Key-Index" on the cards from both backgrounds, I've found that "find" doesn't cross to the next background -- it will ONLY find on cards with the same background as the card I am currently on. As an example, I'm looking at card 1, background one. "Key-index" is "foo-bar-1". There are two cards subsidiary to this, and they both have a "key-index" of "foo-bar-2". if I try: find "foo-bar-2" in background field "Key-Index" fails. However, if I use: go to first card with background "Background 2" find "foo-bar-2" in background field "Key-Index" It works fine. As it happens, this is just fine for my stack, but the behavior is non-intuitive and I thought I'd warn folks. Anyone want to hazard a guess why sort and find work differently on the same field? chuq --- Chuq "Fixed in 4.0" Von Rospach chuq@sun.COM Delphi: CHUQ