From 85c1d23efc210b58e4064bda72532570598f18eb Mon Sep 17 00:00:00 2001 From: Mali Oz Date: Tue, 23 Jul 2024 16:38:37 -0300 Subject: [PATCH] fix prazo ordering (order by prazo) --- app/Models/Turma.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Turma.php b/app/Models/Turma.php index 6bdcfbb..1dcc15b 100644 --- a/app/Models/Turma.php +++ b/app/Models/Turma.php @@ -32,12 +32,12 @@ public function prazos() public function prazosOrdered() { - // THIS WILL ALWAYS BE ORDERED BY EX-NAME + // THIS WILL ALWAYS BE ORDERED BY PRAZO AND EX-NAME return $this->prazos() ->join('exercicios', 'prazos.exercicio_id', '=', 'exercicios.id') ->select('prazos.*','exercicios.name as exercicio_name') - ->orderBy('exercicio_name') ->orderBy('prazo') + ->orderBy('exercicio_name') ; } }