1
0
Fork 0
mirror of synced 2024-12-22 06:31:06 -05:00

Merge pull request #26 from thouveng/sort-panel

Sort panels by name
This commit is contained in:
Aleš Komárek 2017-02-06 18:05:47 +01:00 committed by GitHub
commit 8084f408cf

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)