[thelist] using array.sort() in JavaScript not handling case correctly
.jeff
thelist at lists.evolt.org
Mon Mar 3 11:43:01 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.orghttp://members.evolt.org/jeff/