diff --git a/larigira/dbadmin/__init__.py b/larigira/dbadmin/__init__.py index 18e7c35..319420a 100644 --- a/larigira/dbadmin/__init__.py +++ b/larigira/dbadmin/__init__.py @@ -227,6 +227,7 @@ def edit_event(alarmid): if alarm is None: abort(404) allactions = model.get_all_actions() + allactions.sort(key=lambda a: a.eid, reverse=True) actions = tuple(model.get_actions_by_alarm(alarm)) return render_template( "edit_event.html",