From: <[EMAIL PROTECTED]>
> >>      message-block: copy []
> >>      foreach file-name sort/reverse message-directory [
> >>          file-contents: read file-name
> >>           insert message-block file-contents
> >>      ]
> >>
> >> sorting the message-directory before use, not the message-block
> >> with the contents of each file.
>
> >Is this any different than what I suggested yesterday?  I agree with the
> >solution, I just don't understand why you found this version to work but
> not
> >mine.  Just curious.
>
> It does seem strange that
>
>       message-block: copy []
>       foreach file-name sort/reverse message-directory [
>           file-contents: read file-name
>            insert message-block file-contents
>       ]
>
> and
>
>       message-block: copy []
>       foreach file-name message-directory [
>           file-contents: read file-name
>            insert message-block file-contents
>            sort/reverse message-block
>       ]
>
> wouldn't accomplish the same thing. I'd like to know, too.

Actually, I do see, now.  I typed the wrong block name!  What a "block"
headed manuveur ;-).  I meant to explain was this:

message-block: copy []
sort/reverse message-directory
foreach file-name message-directory [
  file-contents: read file-name
  insert message-block file-contents
]

Sorry for the confusion. I use a similar file name scheme, and sorted it as
such.  But when I translated it into your names, I typed the wrong block
name.  I should have typed out the code segment, and then I would have more
easily seen my own error.  Beside's, Anton's version is cleaner by one
command!

I suspect that the reason that "sort/reverse message-block" within the
foreach loop didn't work had to do with what may have been the first line in
the file content block.  I don't recall the order of the messages in the
test page you had set up yesterday, but could it have been sorting on a
first line that was not the date?  Just a thought.

Thanks for the reply.  Now I understand my error.

--Scott Jones


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to