1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 12:49:19 +00:00

Sort subentries within integration devices by title (#26497)

Sort subentries by title
This commit is contained in:
Andrew Jackson
2025-08-11 18:34:36 +01:00
committed by GitHub
parent 1c845d0052
commit 8eff913845

View File

@@ -476,7 +476,13 @@ class HaConfigEntryRow extends LitElement {
private async _fetchSubEntries() {
this._subEntries = this.entry.num_subentries
? await getSubEntries(this.hass, this.entry.entry_id)
? (await getSubEntries(this.hass, this.entry.entry_id)).sort((a, b) =>
caseInsensitiveStringCompare(
a.title,
b.title,
this.hass.locale.language
)
)
: undefined;
}