@budibase/shared-core 3.2.2 → 3.2.4
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.js +6 -1
- package/dist/index.js.map +2 -2
- package/dist/index.js.meta.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -18419,7 +18419,12 @@ function fixupFilterArrays(filters) {
|
|
|
18419
18419
|
function search(docs, query) {
|
|
18420
18420
|
let result = runQuery(docs, query.query);
|
|
18421
18421
|
if (query.sort) {
|
|
18422
|
-
result = sort(
|
|
18422
|
+
result = sort(
|
|
18423
|
+
result,
|
|
18424
|
+
query.sort,
|
|
18425
|
+
query.sortOrder || "ascending" /* ASCENDING */,
|
|
18426
|
+
query.sortType
|
|
18427
|
+
);
|
|
18423
18428
|
}
|
|
18424
18429
|
const totalRows = result.length;
|
|
18425
18430
|
if (query.limit) {
|