We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e0abc3 commit 828db76Copy full SHA for 828db76
src/DebugBar/JavascriptRenderer.php
@@ -1257,8 +1257,8 @@ protected function getJsControlsDefinitionCode($varname)
1257
$controls = array_merge($widgets, $this->controls);
1258
1259
// Allow widgets to be sorted by order if specified
1260
- uasort($controls, function(array $control){
1261
- return $control['order'] ?? 0;
+ uasort($controls, function(array $controlA, array $controlB){
+ return ($controlA['order'] ?? 0) <=> ($controlB['order'] ?? 0);
1262
});
1263
1264
foreach (array_filter($controls) as $name => $options) {
0 commit comments