You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Plugins/sorting/chinese-string.min.mjs

2 lines
348 B
JavaScript

/*! © SpryMedia Ltd, Patrik Lindström - datatables.net/license */
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.ext.type.order["chinese-string-asc"]=function(e,t){return e.localeCompare(t)},DataTable.ext.type.order["chinese-string-desc"]=function(e,t){return t.localeCompare(e)};export default DataTable;