diff --git a/server/controller/Prestamo/historial.js b/server/controller/Prestamo/historial.js index 6f787ed..e3149ac 100644 --- a/server/controller/Prestamo/historial.js +++ b/server/controller/Prestamo/historial.js @@ -58,6 +58,7 @@ const historial = async (body) => { ], limit: 25, offset: 25 * (pagina - 1), + oreder: [['createdAt', 'DESC']], }).then((res) => { for (let i = 0; i < res.rows.length; i++) { delete res.rows[i].dataValues.idUsuario;