File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ watchPostEffect(() => {
57
57
let hasTargets = v .hasOwnProperty (store .targetType );
58
58
if (hasTargets && v .name ) vendors .value .push ({title: v .name , value: k})
59
59
}
60
+ vendors .value .sort ((a , b ) => a .title .localeCompare (b .title ))
60
61
}).catch ((_ignore ) => {
61
62
})
62
63
}
@@ -74,6 +75,7 @@ watchEffect(() => {
74
75
}
75
76
}
76
77
}
78
+ targets .value .sort ((a , b ) => a .title .localeCompare (b .title ))
77
79
if (targets .value .length === 1 ) {
78
80
store .target = targets .value [0 ].value
79
81
keepTarget = true
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ watchPostEffect(() => {
61
61
Object .keys (v).forEach (type => hasTargets |= type .startsWith (store .targetType ))
62
62
if (hasTargets && v .name ) vendors .value .push ({title: v .name , value: k})
63
63
}
64
+ vendors .value .sort ((a , b ) => a .title .localeCompare (b .title ))
64
65
}).catch ((_ignore ) => {
65
66
})
66
67
}
@@ -111,6 +112,7 @@ watchPostEffect(() => {
111
112
}
112
113
}
113
114
}
115
+ targets .value .sort ((a , b ) => a .title .localeCompare (b .title ))
114
116
if (! keepTarget) store .target = null
115
117
})
116
118
You can’t perform that action at this time.
0 commit comments