Add HTML links for the chinese-string sorting plug-in so it will render correctly on DataTables site.

pull/3/head
Allan Jardine 13 years ago
parent 59d100961f
commit 3beb0b8c69

@ -1,11 +1,11 @@
/**
* Sorting in Javascript for Chinese Character. The Chinese Characters are sorted on the radical and number of
*strokes. This plug-in performs sorting for Chinese characters.
* https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/localeCompare
* Please note about localcompare http://www.datatables.net/forums/discussion/9700/sorting-non-ascii-characters-and-data-content-html-tag-sorting/p1
* @name Chinese-String
* strokes. This plug-in performs sorting for Chinese characters.
* <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/localeCompare">localeCompare MDC documentation</a>.
* <a href="http://www.datatables.net/forums/discussion/9700/sorting-non-ascii-characters-and-data-content-html-tag-sorting/p1">Please also note about localeCompare and IE9.</a>
* @name Chinese (string)
* @anchor chinese-string
* @author <a href="http://www.lcube.se/sorting-chinese-characters-in-javascript/">Patrik Lindström</a>
* @author <a href="http://www.lcube.se/sorting-chinese-characters-in-javascript/">Patrik Lindstr<EFBFBD>m</a>
*/
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
@ -15,5 +15,4 @@
"chinese-string-desc" : function (s1, s2) {
return s2.localeCompare(s1);
}
}
);
} );

Loading…
Cancel
Save