From 0dc775e7584ad95bedea9c8352640bd3c9020e63 Mon Sep 17 00:00:00 2001 From: Douglas Barone Date: Thu, 29 Jun 2023 14:17:47 -0400 Subject: [PATCH] OrderBy --- src/controllers/PrinterController.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/controllers/PrinterController.ts b/src/controllers/PrinterController.ts index 5d1f439..d726456 100644 --- a/src/controllers/PrinterController.ts +++ b/src/controllers/PrinterController.ts @@ -19,7 +19,8 @@ class PrinterController { orderBy: { timestamp: 'desc' }, take: 1 } - } + }, + orderBy: { network: { cidr: 'asc' } } }) return res.json(printers) } @@ -36,7 +37,8 @@ class PrinterController { orderBy: { timestamp: 'desc' }, take: 1 } - } + }, + orderBy: { network: { cidr: 'asc' } } }) return res.json(printers)