sorting arrays
Posted: 2010-01-10 01:01:58
I've been having trouble sorting arrays. It seems that the sort order for arrays is different from the sort that can be used in documents (from the Menu). Is that correct?
The Macro reference mentions sort "options" and refers one to "compare". There it mentions the following possibilities: n, l, s. (Below the table, instead of 's', it says 'u'. That is apparently a typo.) For my purposes it seems that 'n', 'l' and nothing all give the same result, and 's' is a Unicode sort. More specifically here is the problem. I am trying to sort words that include diacritics. With sort from the menu I get the following order, which is what I want.

The Macro reference mentions sort "options" and refers one to "compare". There it mentions the following possibilities: n, l, s. (Below the table, instead of 's', it says 'u'. That is apparently a typo.) For my purposes it seems that 'n', 'l' and nothing all give the same result, and 's' is a Unicode sort. More specifically here is the problem. I am trying to sort words that include diacritics. With sort from the menu I get the following order, which is what I want.
- i
- î
- it
- ko
- i
- it
- î
- ko
- i
- it
- ko
- î