diff --git a/src/libs/routes_v1/rateSchoolNew.js b/src/libs/routes_v1/rateSchoolNew.js index d10fb239b08be57463403cce828e507c4c1ea83f..74688eea8bc90ca09bac36012b8791587e7c11ea 100644 --- a/src/libs/routes_v1/rateSchoolNew.js +++ b/src/libs/routes_v1/rateSchoolNew.js @@ -317,8 +317,8 @@ rateSchoolNewApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { .where('pnad_novo.faixa_etaria < 7') .group('pnad_novo.ano_ref') .group('pnad_novo.faixa_etaria') - .order('pnad_novo.faixa_etaria') .order('pnad_novo.ano_ref') + .order('pnad_novo.faixa_etaria') req.querySet.push(attends_school); // Then, the second object is created and stores the sum of all people below a certain age (24 years) @@ -331,8 +331,8 @@ rateSchoolNewApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { .where('pnad_novo.faixa_etaria < 7') .group('pnad_novo.ano_ref') .group('pnad_novo.faixa_etaria') - .order('pnad_novo.faixa_etaria') .order('pnad_novo.ano_ref') + .order('pnad_novo.faixa_etaria') req.querySet.push(full_population); next();