Skip to content

Commit 6214cf6

Browse files
committed
Merge branch 'fix/306-order-modules-by-custom-criteria' of github.com:WordPress/performance into fix/306-order-modules-by-custom-criteria
2 parents fd16b8b + 2560ab9 commit 6214cf6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bin/plugin/commands/common.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,7 @@ exports.getModuleData = async ( modulesDir ) => {
116116
.sort( ( firstModule, secondModule ) => {
117117
// Not the same focus group.
118118
if ( firstModule.focus !== secondModule.focus ) {
119-
return FOCUS_AREAS[ firstModule.focus ] >
120-
FOCUS_AREAS[ secondModule.focus ]
121-
? 1
122-
: -1;
119+
return FOCUS_AREAS[ firstModule.focus ] - FOCUS_AREAS[ secondModule.focus ];
123120
}
124121

125122
if ( firstModule.experimental !== secondModule.experimental ) {

0 commit comments

Comments
 (0)