@fileverse-dev/formulajs 4.4.17-fix-sort-fn-1 → 4.4.17-fix-sort-fn-2
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/lib/browser/formula.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @fileverse-dev/formulajs v4.4.17-fix-sort-fn-
|
|
1
|
+
/* @fileverse-dev/formulajs v4.4.17-fix-sort-fn-2 */
|
|
2
2
|
var _excluded = [ "confirmations", "dataDecoded" ];
|
|
3
3
|
|
|
4
4
|
function _objectWithoutProperties(e, t) {
|
|
@@ -4858,6 +4858,12 @@ function _typeof(o) {
|
|
|
4858
4858
|
var sort_index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
4859
4859
|
var sort_order = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
4860
4860
|
var by_col = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
4861
|
+
console.log("SORT function called with arguments:", {
|
|
4862
|
+
array: array,
|
|
4863
|
+
sort_index: sort_index,
|
|
4864
|
+
sort_order: sort_order,
|
|
4865
|
+
by_col: by_col
|
|
4866
|
+
});
|
|
4861
4867
|
if (!array || !Array.isArray(array)) return na;
|
|
4862
4868
|
if (array.length === 0) return 0;
|
|
4863
4869
|
var idx = parseNumber(sort_index);
|