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/nepali-numbers.min.js

2 lines
912 B
JavaScript

/*! © SpryMedia Ltd, David Konrad - datatables.net/license */
!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});