1
0
Fork 0
mirror of synced 2024-11-22 08:55:35 -05:00

Sort panels by name

This commit is contained in:
Guillaume Thouvenin 2017-01-25 16:01:40 +01:00
parent 4dab23a099
commit ab1a01bf65

View file

@ -134,7 +134,7 @@ def present(name,
rows[i] = _inherited_row(row, base_rows_from_pillar, ret)
for row in rows:
panels = row.get('panels', [])
for i, panel in enumerate(panels):
for i, panel in enumerate(sorted(panels)):
panels[i] = _inherited_panel(panel, base_panels_from_pillar, ret)
_auto_adjust_panel_spans(new_dashboard)
_ensure_panel_ids(new_dashboard)