Ryan,
Happened to notice your question....
Not sure why you would see such a problem just on IIS.
So you are basically merging the contents of a set
of files, then sorting them in reverse order?
What do the input data files look like? Make sure that
it's all the same datatype.
Put a probe in front of your file-contents line to make
sure it's what you think it is.
Also, have you considered removing the sort from the
foreach loop? May buy you some performance if you
put it after the loop. (But, that should not be the
cause of the problem.)
-Carl
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: Wednesday, April 11, 2001 11:50 AM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] sort/reverse revisited
>
>
> I'm having fits over using sort/reverse to sort file names from a
> directory. I know we've gone over this before, but what I thought was
> working is no longer working. For example, using the following function on
> a Linux server seems to work fine:
>
> read-directory-messages: func [
> "Read a directory of XML-formatted standard messages with the
> directory
> determined by messageType."
> message-directory [block!] "A block of file names corresponding to a
> directory of XML-formatted standard messages."
> ][
> message-block: copy []
> foreach file-name message-directory [
> file-contents: read file-name
> insert message-block file-contents
> sort/reverse message-block
> message-block
> ]
> ]
>
> But on an IIS server, things get out of order. (I have no idea why.) If I
> remove...
>
> sort/reverse message-block
>
> from the above function, the IIS server behaves nicely.
>
> Is there any way to write a function which will accommodate both
> situations
> nicely?
>
> All of my filenames are as such...
>
> 20010410145432
> 20010410145433
> 20010410145434
>
> and as such, there should be some way to order them.
>
> Ryan C. Christiansen
> Web Developer
>
> Intellisol International
> 4733 Amber Valley Parkway
> Fargo, ND 58104
> 701-235-3390 ext. 6671
> FAX: 701-235-9940
> http://www.intellisol.com
>
> Global Leader in People Performance Software
>
> _____________________________________
>
> Confidentiality Notice
> This message may contain privileged and confidential information. If you
> think, for any reason, that this message may have been addressed to you in
> error, you must not disseminate, copy or take any action in
> reliance on it,
> and we would ask you to notify us immediately by return email to
> [EMAIL PROTECTED]
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
>
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.