mirror of
https://github.com/imezx/Warp.git
synced 2026-03-18 00:44:16 +00:00
chore(buffer): i dont think you actually have to sort this?
This commit is contained in:
parent
5337557164
commit
8b845d5412
1 changed files with 3 additions and 3 deletions
|
|
@ -1005,9 +1005,9 @@ function Schema.struct(fields: { [string]: SchemaType }): SchemaType
|
||||||
for k, v in fields do
|
for k, v in fields do
|
||||||
table.insert(orderedFields, { key = k, schema = v })
|
table.insert(orderedFields, { key = k, schema = v })
|
||||||
end
|
end
|
||||||
table.sort(orderedFields, function(a, b)
|
-- table.sort(orderedFields, function(a, b) -- i think this is optional?
|
||||||
return a.key < b.key
|
-- return a.key < b.key
|
||||||
end)
|
-- end)
|
||||||
return { type = "struct", fields = orderedFields }
|
return { type = "struct", fields = orderedFields }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue