core: better pid sort method

This commit is contained in:
undefined committed 2021-11-25 19:35:37 +08:00
1 parent 06a247f819
commit 1a857ae40a
5 files changed
+27 -5

No files matched your search

+1 -1
View File
@@ -148,7 +148,7 @@ export class ProblemMainHandler extends ProblemHandler {
await bus.serial('problem/list', query, this);
// eslint-disable-next-line prefer-const
let [pdocs, ppcount, pcount] = await paginate(
problem.getMulti(domainId, query).sort({ pid: 1, docId: 1 }),
problem.getMulti(domainId, query).sort({ sort: 1, docId: 1 }),
page,
system.get('pagination.problem'),
);