diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index c3e2d26..75af8e1 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -231,6 +231,7 @@ export class QuotationController extends Controller { createdBy: true, updatedBy: true, }, + orderBy: [{ urgent: "desc" }, { createdAt: "desc" }], take: pageSize, skip: (page - 1) * pageSize, }),