Merge pull request #271 from hyagli/patch-1

Sorting: Turkish - uppercase and lowercase letters
pull/161/merge
Allan Jardine 9 years ago committed by GitHub
commit 4b80da817a

@ -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();

Loading…
Cancel
Save