janschenkel at yahoo.com
Thu Aug 29 07:02:01 CDT 2002
--- yves COPPE <yvescoppe at skynet.be> wrote:
> Can you help me for the "sort lines" command.
> The sort lines is based on the US language.
> When I sort lines in French, the lines beginning
> with an accent as
> "é" or "è" are at the end of the list.
> Is it possible to obtain a sort based on
> international sorting key ?
One work-around that's always available, is to first
convert the lines to capitals with the toUpper()
function. This will get rid of the diacritical marks.
If there is no built-in way to change the
diacritical-sorting (couldn't find any right away in
the docs), you could always:
put toUpper(sourceVar) into upperVar
put upperVar into sortVar
sort the lines of sortVar
repeat for each line theLine of sortVar
put line (lineOffset(theLine, upperVar)) of \
sourceVar & return after resultVar
delete char -1 of resultVar
And then resultVar should be pretty close to what you
want. It will eat some memory of course...
Hope this helped,
"As we grow older, we grow both wiser and more foolish
at the same time." (De Rochefoucald)
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
More information about the use-livecode