chore(buffer): i dont think you actually have to sort this?

This commit is contained in:
khtsly 2026-02-12 21:05:05 +07:00
parent 5337557164
commit 8b845d5412

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)
return a.key < b.key
end)
-- table.sort(orderedFields, function(a, b) -- i think this is optional?
-- return a.key < b.key
-- end)
return { type = "struct", fields = orderedFields }
end