From 428e9349ea0ee45a7708df0ec54e209f66ccc4d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCseyin=20Ya=C4=9Fl=C4=B1?= Date: Thu, 9 Jun 2016 16:33:19 +0300 Subject: [PATCH] Uppercase and Lowercase letters Updated to differentiate Uppercase and Lowercase letters --- sorting/turkish-string.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sorting/turkish-string.js b/sorting/turkish-string.js index e2d570a..beb8dae 100644 --- a/sorting/turkish-string.js +++ b/sorting/turkish-string.js @@ -18,12 +18,12 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, { "turkish-pre": function ( a ) { var special_letters = { - "C": "ca", "c": "ca", "Ç": "cb", "ç": "cb", - "G": "ga", "g": "ga", "Ğ": "gb", "ğ": "gb", - "I": "ia", "ı": "ia", "İ": "ib", "i": "ib", - "O": "oa", "o": "oa", "Ö": "ob", "ö": "ob", - "S": "sa", "s": "sa", "Ş": "sb", "ş": "sb", - "U": "ua", "u": "ua", "Ü": "ub", "ü": "ub" + "C": "Ca", "c": "ca", "Ç": "Cb", "ç": "cb", + "G": "Ga", "g": "ga", "Ğ": "Gb", "ğ": "gb", + "I": "Ia", "ı": "ia", "İ": "Ib", "i": "ib", + "O": "Oa", "o": "oa", "Ö": "Ob", "ö": "ob", + "S": "Sa", "s": "sa", "Ş": "Sb", "ş": "sb", + "U": "Ua", "u": "ua", "Ü": "Ub", "ü": "ub" }; for (var val in special_letters) a = a.split(val).join(special_letters[val]).toLowerCase();