diff --git a/src/pages/certification/exploitations/index.vue b/src/pages/certification/exploitations/index.vue index 8aa06dfc..887aaaac 100644 --- a/src/pages/certification/exploitations/index.vue +++ b/src/pages/certification/exploitations/index.vue @@ -108,7 +108,7 @@ meta: - + {{ operators.length }} sur {{ pagination.total }} résultats @@ -198,7 +198,8 @@ const isSearching = ref(false) const searchResults = ref([]) const operators = computed(() => isOnline.value ? searchResults.value : Object.entries(storage.operators).map( ([, { records, operator }]) => ({ ...operator, ...records[0] }) -)) +).sort((a, b) => ((a[sortOrder.value.sort] < b[sortOrder.value.sort]) ^ (sortOrder.value.order === 'desc')) + ? -1 : 1)) // controlled by the form const userInput = ref(props.search)