diff --git a/app/comp/moy_ue.py b/app/comp/moy_ue.py index 523cab3f..efca6662 100644 --- a/app/comp/moy_ue.py +++ b/app/comp/moy_ue.py @@ -77,9 +77,7 @@ def df_load_module_coefs(formation_id: int, semestre_idx: int = None) -> pd.Data & (UniteEns.type == sco_codes_parcours.UE_SPORT) ) ) - .order_by( - Module.semestre_id, Module.module_type.desc(), Module.numero, Module.code - ) + .order_by(Module.semestre_id, Module.module_type, Module.numero, Module.code) ) if semestre_idx is not None: ues = ues.filter_by(semestre_idx=semestre_idx)