Skip to content
Snippets Groups Projects

Issue #3510420: Allow sources to sort projects in arbitrary order

Merged Issue #3510420: Allow sources to sort projects in arbitrary order
All threads resolved!
Merged Adam G-H requested to merge issue/project_browser-3510420:defined-order into 2.0.x
All threads resolved!
Files
6
@@ -149,6 +149,9 @@ final class DrupalCore extends ProjectBrowserSourceBase {
if (!empty($query['page']) && !empty($query['limit'])) {
$projects = array_chunk($projects, $query['limit'])[$query['page']] ?? [];
}
if (array_key_exists('order', $this->configuration)) {
SortHelper::sortInDefinedOrder($projects, $this->configuration['order']);
}
return $this->createResultsPage($projects, $project_count);
}
Loading