From 3399a27c3bd7ad519c7dc7f866ed478c02e2d999 Mon Sep 17 00:00:00 2001 From: Xc Date: Wed, 11 Dec 2024 11:02:46 +0800 Subject: [PATCH] =?UTF-8?q?getModi=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C?= =?UTF-8?q?=E6=8C=89createAt=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- es/features/runningTree.js | 20 ++++++++++++++++++-- lib/features/runningTree.js | 20 ++++++++++++++++++-- src/features/runningTree.ts | 20 ++++++++++++++++++-- 3 files changed, 54 insertions(+), 6 deletions(-) diff --git a/es/features/runningTree.js b/es/features/runningTree.js index 7a130ca4..e46368d6 100644 --- a/es/features/runningTree.js +++ b/es/features/runningTree.js @@ -385,7 +385,15 @@ class ListNode extends EntityNode { $in: ids, }, iState: 'active', - } + }, + sorter: [ + { + $attr: { + $$createAt$$: 1, + }, + $direction: 'asc', + } + ], }); if (modies.length > 0) { return createOperationsFromModies(modies); @@ -1081,7 +1089,15 @@ class SingleNode extends EntityNode { entity: this.entity, entityId: this.id, iState: 'active', - } + }, + sorter: [ + { + $attr: { + $$createAt$$: 1, + }, + $direction: 'asc', + } + ], }); if (modies.length > 0) { return createOperationsFromModies(modies); diff --git a/lib/features/runningTree.js b/lib/features/runningTree.js index 5d0877a6..bb253ec7 100644 --- a/lib/features/runningTree.js +++ b/lib/features/runningTree.js @@ -388,7 +388,15 @@ class ListNode extends EntityNode { $in: ids, }, iState: 'active', - } + }, + sorter: [ + { + $attr: { + $$createAt$$: 1, + }, + $direction: 'asc', + } + ], }); if (modies.length > 0) { return (0, modi_1.createOperationsFromModies)(modies); @@ -1084,7 +1092,15 @@ class SingleNode extends EntityNode { entity: this.entity, entityId: this.id, iState: 'active', - } + }, + sorter: [ + { + $attr: { + $$createAt$$: 1, + }, + $direction: 'asc', + } + ], }); if (modies.length > 0) { return (0, modi_1.createOperationsFromModies)(modies); diff --git a/src/features/runningTree.ts b/src/features/runningTree.ts index 0f589c88..f32d9a24 100644 --- a/src/features/runningTree.ts +++ b/src/features/runningTree.ts @@ -497,7 +497,15 @@ class ListNode< $in: ids, }, iState: 'active', - } + }, + sorter: [ + { + $attr: { + $$createAt$$: 1, + }, + $direction: 'asc', + } + ], }); if (modies.length > 0) { return createOperationsFromModies(modies as ED['modi']['OpSchema'][]); @@ -1350,7 +1358,15 @@ class SingleNode 0) { return createOperationsFromModies(modies as ED['modi']['OpSchema'][]);