Skip to content

Commit

Permalink
Uppercase and Lowercase letters
Browse files Browse the repository at this point in the history
Updated to differentiate Uppercase and Lowercase letters
  • Loading branch information
hyagli committed Jun 9, 2016
1 parent 0c4aa3b commit 428e934
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sorting/turkish-string.js
Expand Up @@ -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();
Expand Down

0 comments on commit 428e934

Please sign in to comment.