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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user