From 35756bbc8679caa42fd10ef43527b64fb860df91 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Fri, 8 Oct 2021 14:58:13 +0200 Subject: [PATCH] Order Translations by id --- app/Controllers/Http/TranslationsController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/Http/TranslationsController.ts b/app/Controllers/Http/TranslationsController.ts index 33abbd0..c4cf913 100644 --- a/app/Controllers/Http/TranslationsController.ts +++ b/app/Controllers/Http/TranslationsController.ts @@ -7,7 +7,7 @@ export default class TranslationsController { public async index ({ response }: HttpContextContract) { return response.status(200).send({ - translations: await Translation.all() + translations: await Translation.query().orderBy('id', 'asc') }) }