From 1a03348d84677c1d30cd59d9195284dbcab00b12 Mon Sep 17 00:00:00 2001 From: John Lindal Date: Fri, 18 Jul 2014 15:31:19 -0700 Subject: [PATCH] normalize sortBy so it is always an array --- src/datatable/js/sort.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/datatable/js/sort.js b/src/datatable/js/sort.js index b73438d1aad..61ec316f2ae 100644 --- a/src/datatable/js/sort.js +++ b/src/datatable/js/sort.js @@ -580,6 +580,9 @@ Y.mix(Sortable.prototype, { } if (i >= len) { + if (!isArray(sortBy)) { + sortBy = [sortBy]; + } sortBy.push(column._id); } } else {