MCPcopy Create free account
hub / github.com/blockstrap/framework / _addNumericSort

Function _addNumericSort

blockstrap/js/dependencies/tables.js:13801–13828  ·  view source on GitHub ↗
( decimalPlace )

Source from the content-addressed store, hash-verified

13799 // function to provide an easy ability for the language options to add
13800 // additional methods if a non-period decimal place is used.
13801 function _addNumericSort ( decimalPlace ) {
13802 $.each(
13803 {
13804 // Plain numbers
13805 "num": function ( d ) {
13806 return __numericReplace( d, decimalPlace );
13807 },
13808
13809 // Formatted numbers
13810 "num-fmt": function ( d ) {
13811 return __numericReplace( d, decimalPlace, _re_formatted_numeric );
13812 },
13813
13814 // HTML numeric
13815 "html-num": function ( d ) {
13816 return __numericReplace( d, decimalPlace, _re_html );
13817 },
13818
13819 // HTML numeric, formatted
13820 "html-num-fmt": function ( d ) {
13821 return __numericReplace( d, decimalPlace, _re_html, _re_formatted_numeric );
13822 }
13823 },
13824 function ( key, fn ) {
13825 _ext.type.order[ key+decimalPlace+'-pre' ] = fn;
13826 }
13827 );
13828 }
13829
13830
13831 // Default sort methods

Callers 2

_fnLanguageCompatFunction · 0.85
tables.jsFile · 0.85

Calls 1

__numericReplaceFunction · 0.85

Tested by

no test coverage detected