Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#7380 closed defect (fixed)

ClientFilter makeComparator

Reported by: maulin Owned by: Jared Jurkiewicz
Priority: low Milestone: 1.2
Component: DojoX Data Version: 1.1.1
Keywords: Cc: kris@…
Blocked By: Blocking:

Description

(I promise, this one is easy and REAL...)

makeComparator breaks if descening is not explicitly declared in the sort array. so

[{attribute:"foo"}, {attribute:"bar"}]

does not work in IE6 or FF2. It works fine in FF3 however.

If you use a double-not trick on line 253, it fixes this --

return av < bv == !!descending ? 1 : -1

:-)

Change History (2)

comment:1 Changed 11 years ago by Kris Zyp

Resolution: fixed
Status: newclosed

Fixed in Changeset [14724], thanks Maulin!

comment:2 Changed 11 years ago by dylan

Milestone: tbd1.2
Note: See TracTickets for help on using tickets.