From f2f7b5ec8705b52a6d2504703f289d6e920057bb Mon Sep 17 00:00:00 2001
From: dcz <dcz@ipipan.waw.pl>
Date: Mon, 27 Jun 2022 21:45:32 +0200
Subject: [PATCH] Attributes sorting correction

---
 unifier/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/unifier/views.py b/unifier/views.py
index 7aca78b..105092a 100644
--- a/unifier/views.py
+++ b/unifier/views.py
@@ -110,7 +110,7 @@ def unifiedFrame2dict(frame):
                     'str': '{}{}'.format(r.role.role.lower(), ' ' + r.attribute.attribute.lower() if r.attribute else ''),
                     'id': str(r.id)
                 } for r in a.proposed_roles.all()],
-            } for a in sorted(frame.unified_arguments.all(), key=lambda x: x.order_id)
+            } for a in sorted(frame.unified_arguments.all(), key=lambda x: x.id)
         ],
 
         'slowal_frame_mapping': [
-- 
GitLab