Skip to content

Commit

Permalink
fix(cc-logs-instances): fix sort order of the instances when grouped …
Browse files Browse the repository at this point in the history
…by deployments
  • Loading branch information
pdesoyres-cc committed Apr 11, 2024
1 parent 3ff0206 commit 0bb4d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/cc-logs-instances/cc-logs-instances.js
Expand Up @@ -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`
<fieldset class="deployment">
Expand Down

0 comments on commit 0bb4d18

Please sign in to comment.