3.2.0

Beta 3 sort problem

I am running into interesting problem with beta 3.
The problem only happens in IE, FF works fine.
When I load the grid I call sort(index, direction) which fails at _sort.js line 72.
I replaced new _sort.js with the old one from beta 2 (just changed the name of the function and onHeaderClicked) and it worked.

Any suggestions?
Alex
December 1,
I think I got it. Following code in _sort.js is not the problem.
else if (typeof(a)=="number") {
    if (a > b) {return greater}
    if (a < b) {return less}
    }

The problem is that the code accounts for "<" and ">" condition but not for ==.
So if two numeric values equal the code does not return 0 and the sort call fails with "Number expected" exception.

I added
return 0;
to line 78 in _sort.js and sort works once again.

Alex can you confirm this?
Alex
December 1,

This topic is archived.

See also:


Back to support forum