Mark Waddingham wrote:

dateItems can be used to sort, but you'd need to sort by each item in

turn:
 put <list of dateItems> into tList
 repeat with n = 1 to 7
   sort lines of tList ascending numeric by item n of each
 end repeat

(the stability of Transcript's sort means that this works fine)



That should be

repeat with n = 7 down to 1 sort lines of tList ascending numeric by item n of each
end repeat

otherwise you finish up with the final sort being by the least important item; you want to do from "most minor" to "most important" in order for the stable sort to help.


And you can do from "6 down to 1", not "7 down to 1" - who cares what day of the week it is :-)

--
Alex Tweedly       http://www.tweedly.net



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.0 - Release Date: 08/03/2005

_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to