Skip to content

Commit 5654fdf

Browse files
committed
fix: sort _id
1 parent 1db447d commit 5654fdf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • packages/codemate-plugin/plugins/assign-problem-list

packages/codemate-plugin/plugins/assign-problem-list/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export class SystemProblemListMainHandler extends Handler {
2929
async get() {
3030
const tdocs = await plist
3131
.getMulti(this.domain._id, { visibility: 'system' }, ['docId', 'title', 'content', 'parent', 'children', 'hidden'])
32+
.sort({ _id: 1 })
3233
.toArray();
3334

3435
const enableHidden = this.user.hasPriv(PRIV.PRIV_EDIT_SYSTEM);

0 commit comments

Comments
 (0)