From 4cb0c7d73793ebec5af8a16db2422e4bb34629ff Mon Sep 17 00:00:00 2001 From: IO <320154041@pcpuma.acatlan.unam.mx> Date: Wed, 19 Jun 2024 13:27:13 -0600 Subject: [PATCH] brings teachers in order by nombre ASC --- src/Profesor/profesor.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Profesor/profesor.service.ts b/src/Profesor/profesor.service.ts index fbd2599..b2cfc59 100644 --- a/src/Profesor/profesor.service.ts +++ b/src/Profesor/profesor.service.ts @@ -30,7 +30,11 @@ export class ProfesorService { //brings all teachers async findAll(): Promise { - return this.profesorRepository.find(); + return this.profesorRepository.find({ + order: { + nombre: 'ASC', + }, + }); } //modify teacher