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

.jeff jeff at members.evolt.org
Mon Mar 3 11:43:01 CST 2003


tom,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Tom Dell'Aringa
>
> I have a select list that I want to dynamically sort by
> alpha. I am able to get it to work using array.sort(),
> except for the fact that it places upper-case letters
> BEFORE lower-case letters. My script is simple enough,
> I loop through my listbox, pull each text/value array
> into a new array, use the sort() function then throw
> them back in.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

erik, of webfx, recently wrote an article on sortable tables.  an entire
page is devoted to complex sorting.

http://webfx.eae.net/dhtml/tablesort/tablesort.html

enjoy,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list