mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-10 19:06:36 +00:00
↕️ fix sorting of addons (#1845)
This commit is contained in:
parent
c05b77961e
commit
cf8899fcbe
@ -48,7 +48,7 @@ class HassioAddonRepository extends NavigateMixin(PolymerElement) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sortAddons(a, b) {
|
sortAddons(a, b) {
|
||||||
return a.name < b.name ? -1 : 1;
|
return a.name.toUpperCase() < b.name.toUpperCase() ? -1 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
computeIcon(addon) {
|
computeIcon(addon) {
|
||||||
|
@ -53,7 +53,7 @@ class HassioAddonStore extends PolymerElement {
|
|||||||
if (b.slug === "core") {
|
if (b.slug === "core") {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return a.name < b.name ? -1 : 1;
|
return a.name.toUpperCase() < b.name.toUpperCase() ? -1 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
computeAddons(repo) {
|
computeAddons(repo) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user