[REBOL] Re: Hungarian Alphabet Sort (was Re: Collation sequence - proper and eff
From: carl:cybercraft at: 16-May-2002 18:58
On 16-May-02, G. Scott Jones wrote:
> This is extremely promising. I drew from the ISO-8859-2 character
> set to make a rule, and it initially seems to sort correctly. The
> time through is roughly the same as my hack (but I've not really
> set-up a clean time condition).
I've thoughts about how to speed it up - will be testing them out.
> The only problem so far occurs when
> I run my word sample list through more than once. It seems to
> magically have kept the original sort/s and continues to append new
> results to the block. I cannot seem to find where the problem is
> occurring.
It's in here...
forall series [
clear blk
parse/case series/1 rule
append/only ptrs copy blk
append last ptrs series/1
]
'forall leaving 'series at its tail, so the 'clear that follows
doesn't clear it. Change it to the following and it should fix that
problem. (Though not your other one. See my other post about that.)
foreach s series [
clear blk
parse/case s rule
append/only ptrs copy blk
append last ptrs s
]
--
Carl Read