Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!ucbvax!tut.cis.ohio-state.edu!rutgers!att!shuxd!devildog!atux01!jlc From: jlc@atux01.UUCP (J. Collymore) Newsgroups: comp.sys.mac.hypercard Subject: Need Help with doing a "dateTime" sort Message-ID: <1030@atux01.UUCP> Date: 20 Mar 89 20:09:27 GMT Organization: AT&T CSEd/CET, Piscataway, N.J. Lines: 21 I have been trying for several days now to perform a sort of the date (and time) in my HyperCard (HC) stack. Although I can get it to sort the date of my cards properly, I can not seem to get it to also sort those dates according to the proper time, whether in ascending (default) or descending order. For example, I sometimes get an ascending sort showing card #1 as 3/20/89 at 5:39 PM before card #2 which reads 3/20/89 at 5:22 PM! (Please note the times. In this example, the second card should come FIRST.) My sort code reads: sort by dateTime word x of line x of bg field x What am I doing wrong? What should the script look like so that the date is in ascending order, but is also ascending appropriately for the time values also on the card field? Thanks for your help. Jim Collymore