mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 12:16:39 +00:00
Remove sort from frontend for now (#6886)
This commit is contained in:
parent
ad8430049d
commit
f7ab52fe9a
@ -21,7 +21,6 @@ import { ifDefined } from "lit-html/directives/if-defined";
|
|||||||
import { styleMap } from "lit-html/directives/style-map";
|
import { styleMap } from "lit-html/directives/style-map";
|
||||||
import memoizeOne from "memoize-one";
|
import memoizeOne from "memoize-one";
|
||||||
import { fireEvent } from "../../common/dom/fire_event";
|
import { fireEvent } from "../../common/dom/fire_event";
|
||||||
import { compare } from "../../common/string/compare";
|
|
||||||
import { computeRTLDirection } from "../../common/util/compute_rtl";
|
import { computeRTLDirection } from "../../common/util/compute_rtl";
|
||||||
import { debounce } from "../../common/util/debounce";
|
import { debounce } from "../../common/util/debounce";
|
||||||
import {
|
import {
|
||||||
@ -478,13 +477,6 @@ export class HaMediaPlayerBrowse extends LitElement {
|
|||||||
mediaContentType
|
mediaContentType
|
||||||
)
|
)
|
||||||
: await browseLocalMediaPlayer(this.hass, mediaContentId);
|
: await browseLocalMediaPlayer(this.hass, mediaContentId);
|
||||||
itemData.children = itemData.children?.sort((first, second) =>
|
|
||||||
!first.can_expand && second.can_expand
|
|
||||||
? 1
|
|
||||||
: first.can_expand && !second.can_expand
|
|
||||||
? -1
|
|
||||||
: compare(first.title, second.title)
|
|
||||||
);
|
|
||||||
|
|
||||||
return itemData;
|
return itemData;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user