sorting with rank only again
This commit is contained in:
1 parent
e024ed2c65
commit
d15f89bd46
1 file changed
+3
-2
+3
-2
@@ -106,13 +106,14 @@ final class Query
|
||||
|
||||
return Edge::fromArray((array)$edgeData);
|
||||
|
||||
})->sortBy(['depth', 'asc'], ['rank', 'desc'])->values()->toArray();
|
||||
})->sortBy("rank")->values()->toArray();
|
||||
|
||||
$queryParentEdges = collect($parentEdges)->map(function ($edgeData) {
|
||||
|
||||
|
||||
return Edge::fromArray((array)$edgeData);
|
||||
|
||||
})->sortBy(['depth', 'asc'], ['rank', 'desc'])->values()->toArray();
|
||||
})->sortBy("rank")->values()->toArray();
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user