mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: better pid sort method
This commit is contained in:
1 parent
06a247f819
commit
1a857ae40a
5 files changed
+27
-5
No files matched your search
@@ -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'),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user