Skip to content

Commit 3762d23

Browse files
committed
1 not -1
1 parent d3039e9 commit 3762d23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/compass-aggregations/src/modules/collections-fields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export const fetchCollectionFields = (
175175
namespaceToQuery,
176176
{},
177177
{
178-
sort: { $natural: -1 },
178+
sort: { $natural: 1 },
179179
limit: 1,
180180
maxTimeMS: FETCH_SCHEMA_MAX_TIME_MS,
181181
}

packages/compass-crud/src/stores/crud-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function getDefaultSort(collectionStats: CollectionStats): Sort {
204204
return { _id: -1 };
205205
}
206206

207-
return { $natural: -1 };
207+
return { $natural: 1 };
208208
}
209209

210210
/**

0 commit comments

Comments
 (0)