Add spaceship
This commit is contained in:
parent
e45170cd0e
commit
8ade529ff8
1 changed files with 1 additions and 5 deletions
|
@ -376,11 +376,7 @@ abstract class Page extends Model
|
||||||
}
|
}
|
||||||
|
|
||||||
\uasort($this->pageHeaders, function (array $a, array $b) {
|
\uasort($this->pageHeaders, function (array $a, array $b) {
|
||||||
if ($a['weight'] === $b['weight']) {
|
return $b['weight'] <=> $a['weight'];
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
return $a['weight'] > $b['weight'] ? -1 : 1;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return $this->pageHeaders;
|
return $this->pageHeaders;
|
||||||
|
|
Loading…
Reference in a new issue