From 0a24f051254b24b2bd2929f07577194db5cc5699 Mon Sep 17 00:00:00 2001 From: wangfengming Date: Mon, 30 Oct 2017 11:50:26 +0800 Subject: [PATCH] Table: support sort-by, use isArray to test sortBy --- packages/table/src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/table/src/util.js b/packages/table/src/util.js index 3c19610a5..f93f14302 100644 --- a/packages/table/src/util.js +++ b/packages/table/src/util.js @@ -28,7 +28,7 @@ export const orderBy = function(array, sortKey, reverse, sortMethod, sortBy) { } const getKey = sortMethod ? null : function(value, index) { if (sortBy) { - if (!Array.isArray) { + if (!Array.isArray(sortBy)) { sortBy = [sortBy]; } return sortBy.map(function(by) {