diff options
-rw-r--r-- | lib/viewfunctions.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/viewfunctions.lua b/lib/viewfunctions.lua index 833d5b4..bcb8a2c 100644 --- a/lib/viewfunctions.lua +++ b/lib/viewfunctions.lua @@ -128,7 +128,7 @@ function displayformcontents(myform, order, finishingorder, header_level, group) end end if #tmporder>0 then - table.sort(tmporder, function(a,b) return a.seq < b.seq end) + table.sort(tmporder, function(a,b) if a.seq ~= b.seq then return a.seq < b.seq else return a.name < b.name end end) order = {} for i,val in ipairs(tmporder) do order[#order+1] = val.name |