From 23d908b932aaf82280a2d8515004fb45a2c0b0a0 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 9 Dec 2021 11:56:10 +0100 Subject: [PATCH] PN: ordre autres modules --- app/scodoc/sco_edit_apc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_edit_apc.py b/app/scodoc/sco_edit_apc.py index a0f65cbe8..94341cddf 100644 --- a/app/scodoc/sco_edit_apc.py +++ b/app/scodoc/sco_edit_apc.py @@ -61,7 +61,9 @@ def html_edit_formation_apc( semestre_ids = [semestre_idx] other_modules = formation.modules.filter( Module.module_type != ModuleType.SAE, Module.module_type != ModuleType.RESSOURCE - ).order_by(Module.semestre_id, Module.module_type, Module.numero, Module.code) + ).order_by( + Module.semestre_id, Module.module_type.desc(), Module.numero, Module.code + ) arrow_up, arrow_down, arrow_none = sco_groups.get_arrow_icons_tags() icons = {