diff --git a/resources/js/components/catalog-new/SelectOptions.vue b/resources/js/components/catalog-new/SelectOptions.vue index 808abe393..fd70da505 100644 --- a/resources/js/components/catalog-new/SelectOptions.vue +++ b/resources/js/components/catalog-new/SelectOptions.vue @@ -35,7 +35,12 @@ const options = computed(() => { checked: true, label: formatLabel(value), })), - ] + ].sort((a, b) => { + if (a.checked && b.checked) return 0 + if (a.checked) return -1 + return 1 + }) + return search.value ? matchSorter(optionsWithSelected, search.value, { keys: ['label'],