[thelist] RE:using array.sort() in JavaScript not handling case

Tom Dell'Aringa pixelmech at yahoo.com
Mon Mar 3 10:45:00 CST 2003


--- Tim Kuhn <tkuhn at eproject.com> wrote:
>
>
> Tim Kuhn
>
> >Anyone know how to make it sort the alpha values by alpha no
> matterwhat the case?
>
> Unless I am missing something here just use string.toLowerCase();
> and then sort.

I can't do that, since when I re-write the values back into the
dropdown, they will all be lower case. They must stay the way they
are.

Tom

=====
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
http://www.pixelmech.com/
var me = tom.pixelmech.webDeveloper();

http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/



More information about the thelist mailing list