In article <5d36…@avisoft.f9.co.uk>, Martin <News…@avisoft.f9.co.uk> wrote:
> As a specific example, it works but does have some limitations. > The most obvious one is that any characters not included in FNcase are > omitted from the sort key completely (eg blank or hyphen).
You're right, Martin. But it is deliberate indeed. I should have mentioned that the program sorts lines *alphabetically*, reason why it omits characters like spaces, hyphens, dots, colons etc. completely. I also left out ArmSort, because I wanted to show code that does it all by its self.
> I suspect however that as FNcase tests each character 29 times, it could > be optimised.
Absolutely. My database program sorts the same 6000 lines in a fraction of a second, font painting the result on screen included. But hm... I should wade through the rivers of code for finding out how I did that. And even then I'm afraid that I would no longer understand it. Oh youth, thou treacherous promise! Paul