From 56929e972515b4f23d76a1020e529b2af00bcc7b Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 29 Dec 2015 08:52:50 -0600 Subject: [PATCH] Use `==` for the 'desc' check in `compareMultiple`. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index e4ab60b2c..e363682c9 100644 --- a/lodash.js +++ b/lodash.js @@ -989,7 +989,7 @@ return result; } var order = orders[index]; - return result * (order === 'desc' ? -1 : 1); + return result * (order == 'desc' ? -1 : 1); } } // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications