@fileverse-dev/formulajs 4.4.19 → 4.4.20
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/cjs/index.cjs
CHANGED
|
@@ -1278,7 +1278,7 @@ function SORT(inputArray, sortIndex = 1, isAscending, sortByColumn = false) {
|
|
|
1278
1278
|
if (!sortColumnIndex || sortColumnIndex < 1) return value;
|
|
1279
1279
|
sortColumnIndex = sortColumnIndex - 1;
|
|
1280
1280
|
|
|
1281
|
-
const sortDirection = isAscending
|
|
1281
|
+
const sortDirection = isAscending?.toLowerCase() === 'false' ? -1 : 1;
|
|
1282
1282
|
const parsedSortDirection = parseNumber(sortDirection);
|
|
1283
1283
|
if (parsedSortDirection !== 1 && parsedSortDirection !== -1) return value;
|
|
1284
1284
|
|
package/lib/esm/index.mjs
CHANGED
|
@@ -1276,7 +1276,7 @@ function SORT(inputArray, sortIndex = 1, isAscending, sortByColumn = false) {
|
|
|
1276
1276
|
if (!sortColumnIndex || sortColumnIndex < 1) return value;
|
|
1277
1277
|
sortColumnIndex = sortColumnIndex - 1;
|
|
1278
1278
|
|
|
1279
|
-
const sortDirection = isAscending
|
|
1279
|
+
const sortDirection = isAscending?.toLowerCase() === 'false' ? -1 : 1;
|
|
1280
1280
|
const parsedSortDirection = parseNumber(sortDirection);
|
|
1281
1281
|
if (parsedSortDirection !== 1 && parsedSortDirection !== -1) return value;
|
|
1282
1282
|
|