From 614675b9186498e54e6364b8cdab34a569d4154f Mon Sep 17 00:00:00 2001
From: Carsten  Rose <carsten.rose@math.uzh.ch>
Date: Mon, 18 Apr 2016 16:17:31 +0200
Subject: [PATCH] formEditor.sql: Subrecords ordered by their 'ord'. sql1 now
 with dimension 70,5.

---
 extension/qfq/sql/formEditor.sql | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/extension/qfq/sql/formEditor.sql b/extension/qfq/sql/formEditor.sql
index 6136b0e97..2f61092ae 100644
--- a/extension/qfq/sql/formEditor.sql
+++ b/extension/qfq/sql/formEditor.sql
@@ -164,7 +164,7 @@ VALUES
    '', '', 4, ''),
 
   (1, '', 'FormElements', 'show', 'subrecord', 'all', 'native', 500, 0, 0, '', '', '',
-   '{{!SELECT id, feIdContainer,	name,	label,	mode,	class,	type, ord, size, sql1, parameter FROM FormElement WHERE formId={{id:R0}}}}',
+   '{{!SELECT id, feIdContainer,	name,	label,	mode,	class,	type, ord, size, sql1, parameter FROM FormElement WHERE formId={{id:R0}} ORDER BY ord, id}}',
    '', 'form=formElement\ndetail=id:formId', 5, 'new,edit,delete');
 
 #
@@ -214,7 +214,7 @@ VALUES
   (2, 'tooltip', 'Tooltip', 'show', 'text', 'all', 'native', 280, 40, 255, '', '', '', '', '', '', 102, '', 'no'),
   (2, 'placeholder', 'Placeholder', 'show', 'text', 'all', 'native', 290, 40, 255, '', '', '', '', '', '', 102, '', 'no'),
   (2, 'value', 'value', 'show', 'text', 'all', 'native', 300, 40, 255, '', '', '', '', '', '', 103, '', 'no'),
-  (2, 'sql1', 'sql1', 'show', 'text', 'all', 'native', 310, '40,4', 255, '', '', '', '', '', '', 103, '', 'no'),
+  (2, 'sql1', 'sql1', 'show', 'text', 'all', 'native', 310, '70,5', 255, '', '', '', '', '', '', 103, '', 'no'),
   (2, 'parameter', 'Parameter', 'show', 'text', 'all', 'native', 320, '40,4', 255, '', '', '', '', '', '', 103, '',
    'no'),
   (2, 'clientJs', 'ClientJS', 'show', 'text', 'all', 'native', 330, 40, 255, '', '', '', '', '', '', 103, '', 'no'),
-- 
GitLab