forked from ScoDoc/ScoDoc
placement_group_size_control #2
@ -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…
x
Reference in New Issue
Block a user