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)