From 52f2c9fdac66eb757eea4f9a3b5fe5d83b44d1be Mon Sep 17 00:00:00 2001 From: Aaron Schwartz Date: Thu, 6 Apr 2017 15:25:56 -0700 Subject: [PATCH] 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. --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 063e4bd..35733a9 100644 --- a/src/utils.js +++ b/src/utils.js @@ -80,7 +80,7 @@ function orderBy (arr, funcs, dirs) { } return dirs[0] ? a.__index - b.__index - : b.__index - b.__index + : b.__index - a.__index }) }