Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/dialogs/notifications/notification-drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,15 @@ export class HuiNotificationDrawer extends EventsMixin(
.filter((entityId) => computeDomain(entityId) === "configurator")
.map((entityId) => hass.states[entityId]);

return notificationsBackend.concat(configuratorEntities);
const notifications = notificationsBackend.concat(configuratorEntities);

notifications.sort(function (n1, n2) {
if (n1.created_at > n2.created_at) { return -1; }
Comment thread
Misiu marked this conversation as resolved.
Outdated
if (n1.created_at < n2.created_at) { return 1; }
return 0;
});

return notifications;
}

showDialog({ narrow }) {
Expand Down