Skip to content

Commit 1d13dbd

Browse files
changes
1 parent f3174bc commit 1d13dbd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,15 +1617,13 @@ class CrudStoreImpl
16171617
countOptions.hint = '_id_';
16181618
}
16191619

1620-
// ok so this is half your battle
16211620
const sort =
16221621
query.sort ||
16231622
(this.preferences.getPreferences().showRecentDocumentsFirst &&
16241623
'natural: -1');
16251624

16261625
const findOptions = {
1627-
// and here
1628-
sort: query.sort,
1626+
sort,
16291627
projection: query.project,
16301628
skip: query.skip,
16311629
limit: docsPerPage,

0 commit comments

Comments
 (0)