make sproto parser result more stable

This commit is contained in:
Cloud Wu
2014-12-25 13:58:32 +08:00
parent ce6fa906d3
commit 23587d0b0f

View File

@@ -316,6 +316,7 @@ local function packgroup(t,p)
alltypes[name] = #alltypes
table.insert(alltypes, name)
end
table.sort(alltypes) -- make result stable
tt = {}
for _,name in ipairs(alltypes) do
table.insert(tt, packtype(name, t[name], alltypes))