brings teachers in order by nombre ASC
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user