refactor(printerdata): changed change to have a static orderby so it dose not jump all over

This commit is contained in:
2025-05-20 16:30:28 -05:00
parent 57ac7a6b8d
commit 5885fe8cd2

View File

@@ -4,7 +4,7 @@ import { printerData } from "../../../../../database/schema/printers.js";
export const getPrinters = async () => {
const { data: printers, error: printerError } = await tryCatch(
db.select().from(printerData)
db.select().from(printerData).orderBy(printerData.name)
);
if (printerError) {