forked from ScoDoc/DocScoDoc
Fix sort groupe (#py3)
This commit is contained in:
parent
0fedb7771c
commit
9578c789dc
@ -1499,7 +1499,7 @@ def _sortgroups(groups):
|
||||
# Tri: place 'all' en tête, puis groupe par partition / nom de groupe
|
||||
R = [g for g in groups if g["partition_name"] is None]
|
||||
o = [g for g in groups if g["partition_name"] != None]
|
||||
o.sort(key=lambda x: (x["numero"], x["group_name"]))
|
||||
o.sort(key=lambda x: (x["numero"] or 0, x["group_name"]))
|
||||
|
||||
return R + o
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user