1
0
Fork 0
mirror of synced 2024-09-20 19:33:10 +12:00

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

View file

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