From b00ce1e1e9805d10dd471c281e737cb9fda07123 Mon Sep 17 00:00:00 2001 From: cgoodwin90 Date: Tue, 26 Mar 2024 15:16:40 +1100 Subject: [PATCH] Applies the alpha sort to only branches --- src/pages/project.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/project.js b/src/pages/project.js index f238d34c..71f73ca1 100644 --- a/src/pages/project.js +++ b/src/pages/project.js @@ -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.ascend(R.prop('name'))], + [R.descend(R.prop('environmentType')), R.ascend(R.prop('deployType')), R.ascend(env => env.deployType === 'branch' ? env.name : null)], project.environments ); const environmentCount = environments.length;