From 0bb4d1837060f85686a8f5438306be017c663455 Mon Sep 17 00:00:00 2001 From: Pierre DE SOYRES Date: Fri, 16 Feb 2024 16:59:43 +0100 Subject: [PATCH] fix(cc-logs-instances): fix sort order of the instances when grouped by deployments --- src/components/cc-logs-instances/cc-logs-instances.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/cc-logs-instances/cc-logs-instances.js b/src/components/cc-logs-instances/cc-logs-instances.js index c9ee3ccb0..7b81cf57c 100644 --- a/src/components/cc-logs-instances/cc-logs-instances.js +++ b/src/components/cc-logs-instances/cc-logs-instances.js @@ -349,7 +349,7 @@ export class CcLogsInstances extends LitElement { // deployment date is the date of the deployment of the first instance in the group .map((instances) => ({ deploymentDate: instances[0].deployment.creationDate, instances })) // sort by deployment date - .sort((o1, o2) => o1.deploymentDate - o2.deploymentDate) + .sort((o1, o2) => o2.deploymentDate - o1.deploymentDate) // render group of instances .map(({ instances }) => html`