mirror of
https://github.com/imezx/Warp.git
synced 2026-03-18 00:44:16 +00:00
rewrite(phase3): nah nvm
This commit is contained in:
parent
8b845d5412
commit
d57d990256
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
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue