sbd-npm 1.2.31 → 1.2.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/util.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.2.31",
3
+ "version": "1.2.32",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -1870,8 +1870,8 @@ const Util = {
1870
1870
  let row_arr = table.find('tr:gt(0)').toArray();
1871
1871
  let td_index = td_obj.index();
1872
1872
  row_arr.sort(function (row1, row2) {
1873
- let td1_val = Util.get_table_td_value(row1, get_table_td_value);
1874
- let td2_val = Util.get_table_td_value(row2, get_table_td_value);
1873
+ let td1_val = Util.get_table_td_value(row1, td_index);
1874
+ let td2_val = Util.get_table_td_value(row2, td_index);
1875
1875
  return $.isNumeric(td1_val) && $.isNumeric(td2_val) ? td1_val - td2_val : td1_val.localeCompare(td2_val);
1876
1876
  });
1877
1877
  let sort_cls = "fa-sort-asc";