@fileverse-dev/dsheet 1.1.35 → 1.1.36
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/dist/index.es.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -19947,7 +19947,7 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
19947
19947
|
}, {
|
|
19948
19948
|
n: "SORT",
|
|
19949
19949
|
t: "14",
|
|
19950
|
-
d: "Sorts the rows of a given array or range by the values in
|
|
19950
|
+
d: "Sorts the rows of a given array or range by the values in a specified column.",
|
|
19951
19951
|
a: "Sorts rows of range by specified column.",
|
|
19952
19952
|
m: [1, 4],
|
|
19953
19953
|
p: [{
|
|
@@ -19959,7 +19959,7 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
19959
19959
|
type: "rangenumber"
|
|
19960
19960
|
}, {
|
|
19961
19961
|
name: "sort_column",
|
|
19962
|
-
detail: "The index of the column in `range` to sort by.
|
|
19962
|
+
detail: "The index of the column in `range` to sort by. defaults to the first column. index starts at 1.",
|
|
19963
19963
|
example: "1",
|
|
19964
19964
|
require: "o",
|
|
19965
19965
|
repeat: "n",
|
|
@@ -41545,7 +41545,7 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
41545
41545
|
}, {
|
|
41546
41546
|
n: "SORT",
|
|
41547
41547
|
t: "14",
|
|
41548
|
-
d: "Sorts the rows of a given array or range by the values in
|
|
41548
|
+
d: "Sorts the rows of a given array or range by the values in a specified column.",
|
|
41549
41549
|
a: "Sorts rows of range by specified column.",
|
|
41550
41550
|
m: [1, 4],
|
|
41551
41551
|
p: [{
|
|
@@ -70254,7 +70254,7 @@ function Xre(e, r = 1, t, a = !1) {
|
|
|
70254
70254
|
let n = Ue(r);
|
|
70255
70255
|
if (!n || n < 1) return dt;
|
|
70256
70256
|
n = n - 1;
|
|
70257
|
-
|
|
70257
|
+
const i = (t == null ? void 0 : t.toLowerCase()) === "false" ? -1 : 1, o = Ue(i);
|
|
70258
70258
|
if (o !== 1 && o !== -1) return dt;
|
|
70259
70259
|
const c = Hw(a);
|
|
70260
70260
|
if (typeof c != "boolean") return Sg;
|
|
@@ -70271,10 +70271,10 @@ function Xre(e, r = 1, t, a = !1) {
|
|
|
70271
70271
|
return y < b ? -1 : y > b ? 1 : 0;
|
|
70272
70272
|
const T = (xn(p) ?? "").toString().toLowerCase(), L = (xn(m) ?? "").toString().toLowerCase();
|
|
70273
70273
|
return T < L ? -1 : T > L ? 1 : 0;
|
|
70274
|
-
}, d = s.map((p, m) => ({ row: p,
|
|
70274
|
+
}, d = s.map((p, m) => ({ row: p, rowIndex: m }));
|
|
70275
70275
|
d.sort((p, m) => {
|
|
70276
70276
|
const v = u(p.row[n], m.row[n]);
|
|
70277
|
-
return v !== 0 ? v * o : p.
|
|
70277
|
+
return v !== 0 ? v * o : p.rowIndex - m.rowIndex;
|
|
70278
70278
|
});
|
|
70279
70279
|
const h = d.map((p) => p.row);
|
|
70280
70280
|
return c ? F5(h) : h;
|