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.
- package/package.json +1 -1
- package/util.js +2 -2
package/package.json
CHANGED
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,
|
1874
|
-
let td2_val = Util.get_table_td_value(row2,
|
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";
|