[Javascript] object sort fails in IE
Flavio Gomes
flavio at economisa.com.br
Tue Apr 20 08:20:13 CDT 2004
That's the weirdest stuff I ever saw in Mozzilla, I tested here, really
worked..
I think I'll be mailing mozilla devel..
(Wow, Mozilla is really wonderful, it even corrects coding [*New Moz
propaganda against IE])
----- Original Message -----
From: "Hassan Schroeder" <hassan at webtuitive.com>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Monday, April 19, 2004 4:39 PM
Subject: Re: [Javascript] object sort fails in IE
> Flavio Gomes wrote:
>
> > Check your code:
> > if ( a.labelString < b.labelString ) { result = 1; }
> > if ( b.labelString > a.labelString ) { result = -1; }
> >
> > Shouldn't it be:
> >
> > if ( a.labelString < b.labelString ) { result = 1; }
> > if ( a.labelString > b.labelString ) { result = -1; }
> >
> > You reversed the "<" and the order of "a" & "b" should've reversed only
one
> > of them.
>
> Oh, dear. You're absolutely right. How did I miss that? And why did
> it seem to work properly in Moz?! That's a wierd one...
>
> Good eyes -- thanks much!
>
> --
> Hassan Schroeder ----------------------------- hassan at webtuitive.com
> Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
>
> dream. code.
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
More information about the Javascript
mailing list