@@ -137,20 +137,20 @@ |
||
| 137 | 137 | $posA = isset($childA[Specs::POSITION]) ? $childA[Specs::POSITION] : 0; |
| 138 | 138 | $posB = isset($childB[Specs::POSITION]) ? $childB[Specs::POSITION] : 0; |
| 139 | 139 | if ($posA < $posB) { |
| 140 | - return - 1; |
|
| 140 | + return -1; |
|
| 141 | 141 | } |
| 142 | 142 | if ($posA > $posB) { |
| 143 | 143 | return 1; |
| 144 | 144 | } |
| 145 | 145 | if ($childA['__index'] > $childB['__index']) { |
| 146 | - return - 1; |
|
| 146 | + return -1; |
|
| 147 | 147 | } |
| 148 | 148 | if ($childA['__index'] < $childB['__index']) { |
| 149 | 149 | return 1; |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | // if the priority is the same, childB is first |
| 153 | - return - 1; |
|
| 153 | + return -1; |
|
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | /** |