Added order

This commit is contained in:
Torsten Schulz
2024-07-10 17:48:40 +02:00
parent 7ab3be1465
commit d4811660fe
9 changed files with 15 additions and 12 deletions

View File

@@ -9,7 +9,8 @@ const getAllInstitutions = async (req, res) => {
as: 'contactPersons',
through: { attributes: [] }
}
]
],
order: [['name', 'ASC']]
});
res.json(institutions);
} catch (error) {