diff --git a/back/services/cron.ts b/back/services/cron.ts index 460de02a..ab756f61 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -168,7 +168,12 @@ export default class CronService { } let condition: any = { where: query, - order: [['createdAt', 'DESC']], + order: [ + ['isPinned', 'DESC'], + ['isDisabled', 'ASC'], + ['status', 'ASC'], + ['createdAt', 'DESC'], + ], }; if (page && size) { condition.offset = (page - 1) * size;