File tree 1 file changed +3
-2
lines changed
src/pages/certification/exploitations
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ meta:
108
108
</td >
109
109
</tr >
110
110
</tbody >
111
- <tfoot v-if =" !isSearching && hasResults" >
111
+ <tfoot v-if =" !isSearching && hasResults && isOnline " >
112
112
<tr >
113
113
<td colspan =" 3" class =" results-total" >{{ operators.length }} sur {{ pagination.total }} résultats</td >
114
114
<td >
@@ -198,7 +198,8 @@ const isSearching = ref(false)
198
198
const searchResults = ref ([])
199
199
const operators = computed (() => isOnline .value ? searchResults .value : Object .entries (storage .operators ).map (
200
200
([, { records, operator }]) => ({ ... operator, ... records[0 ] })
201
- ))
201
+ ).sort ((a , b ) => ((a[sortOrder .value .sort ] < b[sortOrder .value .sort ]) ^ (sortOrder .value .order === ' desc' ))
202
+ ? - 1 : 1 ))
202
203
203
204
// controlled by the form
204
205
const userInput = ref (props .search )
You can’t perform that action at this time.
0 commit comments