Repository: kylin Updated Branches: refs/heads/2.x-staging c3a9b970a -> 83bf92ca2
KYLIN-1337 sort case insensitive by default Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/83bf92ca Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/83bf92ca Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/83bf92ca Branch: refs/heads/2.x-staging Commit: 83bf92ca2ef70ff831859c3b20150ee524b628b9 Parents: c3a9b97 Author: janzhongi <[email protected]> Authored: Thu Feb 25 17:52:40 2016 +0800 Committer: janzhongi <[email protected]> Committed: Thu Feb 25 17:52:40 2016 +0800 ---------------------------------------------------------------------- webapp/app/js/filters/filter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/83bf92ca/webapp/app/js/filters/filter.js ---------------------------------------------------------------------- diff --git a/webapp/app/js/filters/filter.js b/webapp/app/js/filters/filter.js index 1eaae93..f18b6f6 100755 --- a/webapp/app/js/filters/filter.js +++ b/webapp/app/js/filters/filter.js @@ -54,7 +54,7 @@ KylinApp result = 1; } else { - result = attriOfA > attriOfB ? 1 : attriOfA < attriOfB ? -1 : 0; + result = attriOfA.toLowerCase() > attriOfB.toLowerCase() ? 1 : attriOfA.toLowerCase() < attriOfB.toLowerCase() ? -1 : 0; } return reverse ? -result : result; });
