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/chapter.min.mjs

2 lines
342 B
JavaScript

/*! © SpryMedia Ltd - datatables.net/license */
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.ext.type.order["chapter-pre"]=function(e){for(var t,r="",a=e.split("."),l=0;l<5;l++)r=(r+=0==(t=l<a.length?4-a[l].length:4)?"":Array(1+t).join("0"))+(l<a.length?a[l]:"");return r};export default DataTable;