PageSourceSearch

https://investirparaenriquecer.com/_autoindex/assets/js/tablesort.number.js

js investirparaenriquecer.com collected 2026-09-27 06:19:47 UTC 682 bytes, 26 lines download raw bytes

vendor: 682 bytes, lines 1-26
1(function(){
2  var cleanNumber = function(i) {
3    return i.replace(/[^\-?0-9.]/g, '');
4  },
5
6  compareNumber = function(a, b) {
7    a = parseFloat(a);
8    b = parseFloat(b);
9
10    a = isNaN(a) ? 0 : a;
11    b = isNaN(b) ? 0 : b;
12
13    return a - b;
14  };
15
16  Tablesort.extend('number', function(item) {
17    return item.match(/^[-+]?[£\x24Û¢´€]?\d+\s*([,\.]\d{0,2})/) || // Prefixed currency
18      item.match(/^[-+]?\d+\s*([,\.]\d{0,2})?[£\x24Û¢´€]/) || // Suffixed currency
19      item.match(/^[-+]?(\d)*-?([,\.]){0,1}-?(\d)+([E,e][\-+][\d]+)?%?$/); // Number
20  }, function(a, b) {
21    a = cleanNumber(a);
22    b = cleanNumber(b);
23
24    return compareNumber(b, a);
25  });
26}());

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.