Log UI: sort the log area multiselect naturally (#29289)

This commit is contained in:
Mathias Walter 2026-04-21 05:54:45 +02:00 • committed by GitHub
parent 4bfc1ba6e9
commit 7d2f507f3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -171,7 +171,10 @@ export default defineComponent({
});
},
areaOptions() {
return this.availableAreas.map((area) => ({ name: area, value: area }));
return this.availableAreas
.slice()
.sort((a, b) => a.localeCompare(b, undefined, { numeric: true }))
.map((area) => ({ name: area, value: area }));
},
areasLabel() {
if (this.areas.length === 0) {