rewrite(phase3): nah nvm

This commit is contained in:
khtsly 2026-02-13 00:55:33 +07:00
parent 8b845d5412
commit d57d990256

View file

@ -1005,9 +1005,9 @@ function Schema.struct(fields: { [string]: SchemaType }): SchemaType
for k, v in fields do
table.insert(orderedFields, { key = k, schema = v })
end
-- table.sort(orderedFields, function(a, b) -- i think this is optional?
-- return a.key < b.key
-- end)
table.sort(orderedFields, function(a, b)
return a.key < b.key
end)
return { type = "struct", fields = orderedFields }
end