|
|
!function(r){var t,u;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return r(e,window,document)}):"object"==typeof exports?(t=require("jquery"),u=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"!=typeof window?module.exports=function(e,n){return e=e||window,n=n||t(e),u(e,n),r(n,0,e.document)}:(u(window,t),module.exports=r(t,window,window.document))):r(jQuery,window,document)}(function(e,n,r,t){"use strict";e=e.fn.dataTable;return e.ext.order["nepali-numbers-pre"]=function(e){for(var n="",r=0;r<e.length;r++)n+=function(e){switch(e){case"०":return 0;case"१":return 1;case"२":return 2;case"३":return 3;case"४":return 4;case"५":return 5;case"६":return 6;case"७":return 7;case"८":return 8;case"९":return 9;default:return 0}}(e.charAt(r));return parseInt(n,10)},e}); |