-
Notifications
You must be signed in to change notification settings - Fork 753
Language
Languages: Polish
When sorting languages, accented or other special characters may not sort properly within the table. So by using the sortLocaleCompare
option the equivalent character can be assigned and thus correct the sorting issue. See the main document demo on how to apply the code provided below - essentially, add this code before initializing the table.
Please help contribute information to this page!
Note: If you would like to contribute but you are having trouble figuring out the unicode value (e.g. \u0105
) for a character, the easiest solution I've found would be to use Google's closure compiler.
-
Go to the Google closure compiler site
-
Hit the reset link
-
Enter the following, replacing the characters as needed:
a = "ą"
You will end up with a result of
a="\u0105";
-
Copy and paste the code into the object
Thanks!
From this StackOverflow question, so thanks to skowron-line for sharing this data.
$.extend( $.tablesorter.characterEquivalents, {
"a" : "\u0105", // ą
"A" : "\u0104", // Ą
"c" : "\u0107", // ć
"C" : "\u0106", // Ć
"e" : "\u0119", // ę
"E" : "\u0118", // Ę
"l" : "\u0142", // ł
"L" : "\u0141", // Ł
"n" : "\u0144", // ń
"N" : "\u0143", // Ń
"o" : "\u00f3", // ó
"O" : "\u00d3", // Ó
"s" : "\u015b", // ś
"S" : "\u015a", // Ś
"z" : "\u017a\u017c", // źż
"Z" : "\u0179\u017b" // ŹŻ
});
Wiki: Home | FAQ | Customize | Snippets | Search | Language | Changes | Older-changes-2.25.0 | Older-changes-2.13.0 | Change summary