From 3beb0b8c69fe27c892b37b8e4a0bc7091b2b1165 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Sat, 21 Jul 2012 16:31:45 +0200 Subject: [PATCH] Add HTML links for the chinese-string sorting plug-in so it will render correctly on DataTables site. --- sorting/chinese-string.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sorting/chinese-string.js b/sorting/chinese-string.js index d7562f2..da490d9 100644 --- a/sorting/chinese-string.js +++ b/sorting/chinese-string.js @@ -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. + * localeCompare MDC documentation. + * Please also note about localeCompare and IE9. + * @name Chinese (string) * @anchor chinese-string - * @author Patrik Lindström + * @author Patrik Lindstr�m */ jQuery.extend( jQuery.fn.dataTableExt.oSort, { @@ -15,5 +15,4 @@ "chinese-string-desc" : function (s1, s2) { return s2.localeCompare(s1); } -} - ); \ No newline at end of file +} );