From 2dfbc7708bb7662568869026c5dbf5c89094b57a Mon Sep 17 00:00:00 2001 From: lemuel Date: Mon, 7 Mar 2022 13:11:05 -0600 Subject: [PATCH] orden historial prestamo --- server/controller/Prestamo/historial.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/controller/Prestamo/historial.js b/server/controller/Prestamo/historial.js index 916ba4b..0f24942 100644 --- a/server/controller/Prestamo/historial.js +++ b/server/controller/Prestamo/historial.js @@ -92,6 +92,7 @@ const historial = async (body) => { 'regresoInmediato', 'createdAt', ], + order: [['idPrestamo', 'ASC']], limit: 25, offset: 25 * (pagina - 1), });