src/Charcoal/Ui/Dashboard/DashboardTrait.php 1 location
|
@@ 206-212 (lines=7) @@
|
203 |
|
* @param mixed $b Widget B. |
204 |
|
* @return integer Sorting value: -1 or 1 |
205 |
|
*/ |
206 |
|
protected static function sortWidgetsByPriority($a, $b) |
207 |
|
{ |
208 |
|
$a = $a->priority(); |
209 |
|
$b = $b->priority(); |
210 |
|
|
211 |
|
return ($a < $b) ? (-1) : 1; |
212 |
|
} |
213 |
|
} |
214 |
|
|
src/Charcoal/Ui/Form/FormTrait.php 1 location
|
@@ 504-510 (lines=7) @@
|
501 |
|
* @param FormGroupInterface $b Form Group B. |
502 |
|
* @return integer Sorting value: -1 or 1 |
503 |
|
*/ |
504 |
|
protected static function sortGroupsByPriority( |
505 |
|
FormGroupInterface $a, |
506 |
|
FormGroupInterface $b |
507 |
|
) { |
508 |
|
$a = $a->priority(); |
509 |
|
$b = $b->priority(); |
510 |
|
|
511 |
|
return ($a < $b) ? (-1) : 1; |
512 |
|
} |
513 |
|
} |