ソースを参照

Update bootstrap-table.js

the sorting process has been localized
arifemre 11 年 前
コミット
09b2e26a58
1 ファイル変更3 行追加3 行削除
  1. 3 3
      src/bootstrap-table.js

+ 3 - 3
src/bootstrap-table.js

@@ -501,16 +501,16 @@
                 if (aa === undefined || aa === null) {
                 if (aa === undefined || aa === null) {
                     aa = '';
                     aa = '';
                 }
                 }
-                if (aa === undefined || bb === null) {
+                if (bb === undefined || bb === null) {
                     bb = '';
                     bb = '';
                 }
                 }
 
 
                 if (aa === bb) {
                 if (aa === bb) {
                     return 0;
                     return 0;
                 }
                 }
-                if (aa < bb) {
+                if (aa.localeCompare(bb) == -1)
                     return order * -1;
                     return order * -1;
-                }
+                    
                 return order;
                 return order;
             });
             });
         }
         }