brings teachers in order by nombre ASC

This commit is contained in:
2024-06-19 13:27:13 -06:00
parent 215c9f6ce5
commit 4cb0c7d737
+5 -1
View File
@@ -30,7 +30,11 @@ export class ProfesorService {
//brings all teachers
async findAll(): Promise<Profesor[]> {
return this.profesorRepository.find();
return this.profesorRepository.find({
order: {
nombre: 'ASC',
},
});
}
//modify teacher