Skip to content

Commit

Permalink
Order environments by name
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood authored Mar 26, 2024
1 parent 3368759 commit 08c5e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const PageProject = ({ router }) => {
}
// Sort alphabetically by environmentType and then deployType
const environments = R.sortWith(
[R.descend(R.prop('environmentType')), R.ascend(R.prop('deployType'))],
[R.descend(R.prop('environmentType')), R.ascend(R.prop('deployType')), R.ascend(R.prop('name'))],
project.environments
);
const environmentCount = environments.length;
Expand Down

0 comments on commit 08c5e45

Please sign in to comment.