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 99fb013 commit 01a6102Copy full SHA for 01a6102
src/Word.php
@@ -115,10 +115,6 @@ public function portmanteaus()
115
116
$portmanteaus = [];
117
118
- usort($responseItems, function($a, $b) {
119
- return $a->combined > $b->combined ? 1 : -1;
120
- });
121
-
122
foreach($responseItems as $responseItem) {
123
$responseItemPortmanteaus = array_map(function($portmanteauString) {
124
return new Word($portmanteauString);
@@ -127,6 +123,8 @@ public function portmanteaus()
127
$portmanteaus = array_merge($portmanteaus, $responseItemPortmanteaus);
128
}
129
125
126
+ sort($portmanteaus);
+
130
$this->cache->set($cacheKey, $portmanteaus);
131
132
return $portmanteaus;
0 commit comments