Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
project_browser
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
project_browser
Merge requests
!762
Issue
#3510420
: Allow sources to sort projects in arbitrary order
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3510420
: Allow sources to sort projects in arbitrary order
issue/project_browser-3510420:defined-order
into
2.0.x
Overview
10
Commits
13
Pipelines
12
Changes
6
All threads resolved!
Show all comments
Merged
Adam G-H
requested to merge
issue/project_browser-3510420:defined-order
into
2.0.x
3 months ago
Overview
10
Commits
13
Pipelines
12
Changes
6
All threads resolved!
Show all comments
Expand
0
0
Merge request reports
Compare
2.0.x
version 11
f4dd3171
3 months ago
version 10
d59f9abd
3 months ago
version 9
2d541623
3 months ago
version 8
bdc6816f
3 months ago
version 7
e5a24645
3 months ago
version 6
7613705d
3 months ago
version 5
131fc5a3
3 months ago
version 4
9c94cd20
3 months ago
version 3
95b54162
3 months ago
version 2
6b6a830e
3 months ago
version 1
711edd2a
3 months ago
2.0.x (base)
and
latest version
latest version
f4dd3171
13 commits,
3 months ago
version 11
f4dd3171
13 commits,
3 months ago
version 10
d59f9abd
12 commits,
3 months ago
version 9
2d541623
11 commits,
3 months ago
version 8
bdc6816f
10 commits,
3 months ago
version 7
e5a24645
8 commits,
3 months ago
version 6
7613705d
7 commits,
3 months ago
version 5
131fc5a3
6 commits,
3 months ago
version 4
9c94cd20
5 commits,
3 months ago
version 3
95b54162
3 commits,
3 months ago
version 2
6b6a830e
3 commits,
3 months ago
version 1
711edd2a
2 commits,
3 months ago
6 files
+
128
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
src/Plugin/ProjectBrowserSource/DrupalCore.php
+
3
−
0
Options
@@ -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