Skip to content

Commit 8b57217

Browse files
author
Joan He
committed
MAGETWO-52650: Plugins sort order wrongly sorted and ducumented
1 parent 964f540 commit 8b57217

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Interception/PluginList/PluginList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ protected function _sort($itemA, $itemB)
212212
}
213213
return $itemA['sortOrder'];
214214
} elseif (isset($itemB['sortOrder'])) {
215-
return $itemB['sortOrder'];
215+
return (0 - (int)$itemB['sortOrder']);
216216
} else {
217-
return 1;
217+
return 0;
218218
}
219219
}
220220

0 commit comments

Comments
 (0)