Sort fields by name in the picker

This commit is contained in:
Dean 2024-07-01 15:07:30 +01:00
parent 1e4563f1e0
commit 91df945250
1 changed files with 3 additions and 4 deletions

View File

@ -82,10 +82,9 @@
const [, field] = entry
return field.type !== "formula" && !field.autocolumn
})
.sort(
([, schemaA], [, schemaB]) =>
(schemaA.type === "attachment") - (schemaB.type === "attachment")
)
.sort(([nameA], [nameB]) => {
return nameA < nameB ? -1 : 1
})
// Parse out any data not in the schema.
for (const column in editableFields) {