You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ma...@apache.org on 2016/03/02 06:42:00 UTC

[10/29] kylin git commit: KYLIN-1337 sort case insensitive by default

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/63c59fe9
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/63c59fe9
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/63c59fe9

Branch: refs/heads/1.x-HBase1.1.3
Commit: 63c59fe9d27dba40053def375873dfec1c14311a
Parents: e72a6b6
Author: janzhongi <ji...@ebay.com>
Authored: Thu Feb 25 17:53:53 2016 +0800
Committer: janzhongi <ji...@ebay.com>
Committed: Thu Feb 25 17:54:27 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/63c59fe9/webapp/app/js/filters/filter.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/filters/filter.js b/webapp/app/js/filters/filter.js
index 859b432..980ebe9 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;
       });