fix: add sortKey to normalized dynamic fields to prevent flaky comparisons

Co-authored-by: CurryYangxx <163384738+CurryYangxx@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-04 03:22:30 +00:00
parent dbc38ab587
commit 0e2ab27a67

View File

@@ -267,7 +267,7 @@ export class DataPage {
const result: any = {};
for (const [key, value] of Object.entries(obj)) {
// Replace dynamic fields with placeholder
if (['id', '_id', 'created', 'modified', 'metaSortKey'].includes(key)) {
if (['id', '_id', 'created', 'modified', 'metaSortKey', 'sortKey'].includes(key)) {
result[key] = '{{dynamic}}';
} else if (key === 'meta' && value && typeof value === 'object') {
// Handle meta object specially