( decimalPlace )
| 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 |
no test coverage detected