kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhongj...@apache.org
Subject kylin git commit: KYLIN-1337 sort case insensitive by default
Date Thu, 25 Feb 2016 09:51:49 GMT
Repository: kylin
Updated Branches:
  refs/heads/2.0-rc 4946efea8 -> e0c483e0a


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

Branch: refs/heads/2.0-rc
Commit: e0c483e0a047ac0c52a907471cf645b8e9827d76
Parents: 4946efe
Author: janzhongi <jiazhong@ebay.com>
Authored: Thu Feb 25 17:51:09 2016 +0800
Committer: janzhongi <jiazhong@ebay.com>
Committed: Thu Feb 25 17:51:09 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/e0c483e0/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;
       });


Mime
View raw message