@@ -99,17 +99,14 @@ |
||
| 99 | 99 | return strcoll(strtolower($a->getLabel()), strtolower($b->getLabel())); |
| 100 | 100 | } |
| 101 | 101 | return 1; |
| 102 | - } |
|
| 103 | - else if ($bnot == null) { |
|
| 102 | + } else if ($bnot == null) { |
|
| 104 | 103 | return -1; |
| 105 | - } |
|
| 106 | - else { |
|
| 104 | + } else { |
|
| 107 | 105 | // assume that notations are unique |
| 108 | 106 | return strnatcasecmp($anot, $bnot); |
| 109 | 107 | } |
| 110 | 108 | }); |
| 111 | - } |
|
| 112 | - else { |
|
| 109 | + } else { |
|
| 113 | 110 | uasort($this->values, function($a, $b) { |
| 114 | 111 | // assume that labels are unique |
| 115 | 112 | return strcoll(strtolower($a->getLabel()), strtolower($b->getLabel())); |