diff --git a/src/store/data.js b/src/store/data.js index 75fc23a92f..9587ceab29 100644 --- a/src/store/data.js +++ b/src/store/data.js @@ -104,8 +104,8 @@ export const useDataStore = defineStore('data', { allColumns = allColumns.concat(MetaColumns.filter(col => columnSettingsMap[col.id])) if (view.columnSettings) { allColumns = allColumns.sort((a, b) => { - const orderA = columnSettingsMap[a.id]?.order ?? Number.MAX_SAFE_INTEGER - const orderB = columnSettingsMap[b.id]?.order ?? Number.MAX_SAFE_INTEGER + const orderA = a.viewColumnInformation?.order ?? columnSettingsMap[a.id]?.order ?? Number.MAX_SAFE_INTEGER + const orderB = b.viewColumnInformation?.order ?? columnSettingsMap[b.id]?.order ?? Number.MAX_SAFE_INTEGER return orderA - orderB }) } diff --git a/src/views/ContentReferenceWidget.vue b/src/views/ContentReferenceWidget.vue index f4749867d1..fca62f12d6 100644 --- a/src/views/ContentReferenceWidget.vue +++ b/src/views/ContentReferenceWidget.vue @@ -19,17 +19,18 @@