Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #6739
| From | Matthew Phillips <spam2011m@yahoo.co.uk> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: Sorting algorithms |
| Date | 2026-11-25 20:05 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <163f6e3d5d.Matthew@sinenomine.co.uk> (permalink) |
| References | (2 earlier) <5d3628e1b7News04@avisoft.f9.co.uk> <5d362f6206Paul@sprie.nl> <11dfi5o$1l3bi$1@solani.org> <5d38c72b71Paul@sprie.nl> <5d3913ac38bob@sick-of-spam.invalid> |
In message <5d3913ac38bob@sick-of-spam.invalid> on 17 Nov 2026 Bob Latham wrote: > In article <5d38c72b71Paul@sprie.nl>, > Paul Sprangers <Paul@sprie.nl> wrote: >> A string is 'bigger' than another if it alphabetically comes after >> the other one. "Sebastian Barthel" is bigger than "Sebestian Bach"! >> The point is that BASIC only looks at the ASCII value of characters >> for determining the alphabetical flow. Therefore it puts 'Céline' >> after 'Coline', for example. > For my 'Céline' fix i noticed that the possible problem characters > are for the most part form &C0 upwards and so I simply have a > substitution table for those chars which is only used in the > comparison section, I don't actually change the characters. You might like to consider the SWI Territory_Collate which has options to ignore both case and accents. I see from RISC OS 5.22 onwards it can even interpret numbers in the string and sort them more naturally. It will probably slow things down a little as a SWI will always be slower than an optimised routine in assembly language. -- Matthew Phillips Durham
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Sorting algorithms Bob Latham <bob@sick-of-spam.invalid> - 2026-11-06 08:45 +0000
Re: Sorting algorithms Jean-Michel <jmc.bruck@orange.fr> - 2026-11-06 17:30 +0100
Re: Sorting algorithms Bob Latham <bob@sick-of-spam.invalid> - 2026-11-06 17:57 +0000
Re: Sorting algorithms Jean-Michel <jmc.bruck@orange.fr> - 2026-11-06 20:28 +0100
Re: Sorting algorithms Paul Sprangers <Paul@sprie.nl> - 2026-11-07 13:36 +0100
Re: Sorting algorithms Jean-Michel <jmc.bruck@orange.fr> - 2026-11-07 18:55 +0100
Re: Sorting algorithms Paul Sprangers <Paul@sprie.nl> - 2026-11-07 19:41 +0100
Re: Sorting algorithms Martin <News04@avisoft.f9.co.uk> - 2026-11-07 19:48 +0000
Re: Sorting algorithms Bob Latham <bob@sick-of-spam.invalid> - 2026-11-08 12:13 +0000
Re: Sorting algorithms Paul Sprangers <Paul@sprie.nl> - 2026-11-11 17:06 +0100
Re: Sorting algorithms Martin <News04@avisoft.f9.co.uk> - 2026-11-11 17:14 +0000
Re: Sorting algorithms Paul Sprangers <Paul@sprie.nl> - 2026-11-11 19:25 +0100
Re: Sorting algorithms Sebastian Barthel <naitsabes@freenet.de> - 2026-11-16 18:31 +0000
Re: Sorting algorithms Paul Sprangers <Paul@sprie.nl> - 2026-11-16 20:15 +0100
Re: Sorting algorithms Bob Latham <bob@sick-of-spam.invalid> - 2026-11-17 09:11 +0000
Re: Sorting algorithms Matthew Phillips <spam2011m@yahoo.co.uk> - 2026-11-25 20:05 +0000
Re: Sorting algorithms Bob Latham <bob@sick-of-spam.invalid> - 2026-11-25 21:07 +0000
Re: Sorting algorithms Martin <News04@avisoft.f9.co.uk> - 2026-11-16 19:17 +0000
Re: Sorting algorithms Jean-Michel <jmc.bruck@orange.fr> - 2026-11-11 20:36 +0100
Re: Sorting algorithms Paul Sprangers <Paul@sprie.nl> - 2026-11-11 22:55 +0100
csiph-web