diff --git a/packages/table/src/util.js b/packages/table/src/util.js index f93f14302..db3fcf652 100644 --- a/packages/table/src/util.js +++ b/packages/table/src/util.js @@ -18,7 +18,7 @@ const isObject = function(obj) { }; export const orderBy = function(array, sortKey, reverse, sortMethod, sortBy) { - if (!sortKey && !sortMethod && (!sortBy || Array.isArray && !sortBy.length)) { + if (!sortKey && !sortMethod && (!sortBy || Array.isArray(sortBy) && !sortBy.length)) { return array; } if (typeof reverse === 'string') {