Skip to content

Project Hierarchy List Not Sorting Correctly on Project Pages

It was reported in the following issue that the Project Hierarchy list is not sorting as expected: eclipsefdn/emo-team/emo#929 (comment 5489207)

Example:

image

This behavior can be seen on this project page:

https://projects.eclipse.org/projects/modeling

After a quick look at the code, it appears that we sort the list of projects using PHP’s uasort() and sort by the project title:

https://gitlab.eclipse.org/eclipsefdn/software-dev/websites/drupal/eclipsefdn/-/blob/9.1.x/eclipsefdn_projects/src/Plugin/Block/RelatedProjects.php?ref_type=heads#L269

We need to investigate why this list is not being sorted correctly and ensure the sorting logic behaves as intended.