Fix descending sort being non-deterministic

Descending sort would sort differently for the same data on rerender for items that evaluated to the same value.
This commit is contained in:
Aaron Schwartz
2017-04-06 15:25:56 -07:00
committed by GitHub
parent 3b39f523be
commit 52f2c9fdac

View File

@@ -80,7 +80,7 @@ function orderBy (arr, funcs, dirs) {
}
return dirs[0]
? a.__index - b.__index
: b.__index - b.__index
: b.__index - a.__index
})
}