[#5641] changed the relation picker default sort to use rowid instead of created
This commit is contained in:
@@ -159,9 +159,14 @@
|
||||
|
||||
const fallbackSearchFields = CommonHelper.getAllCollectionIdentifiers(collection);
|
||||
|
||||
let sort = "";
|
||||
if (!isView) {
|
||||
sort = "-@rowid"; // all collections with exception to the view has this field
|
||||
}
|
||||
|
||||
const result = await ApiClient.collection(collectionId).getList(page, batchSize, {
|
||||
filter: CommonHelper.normalizeSearchFilter(filter, fallbackSearchFields),
|
||||
sort: !isView ? "-created" : "",
|
||||
sort: sort,
|
||||
fields: "*:excerpt(200)",
|
||||
skipTotal: 1,
|
||||
expand: getExpand(),
|
||||
|
||||
Reference in New Issue
Block a user