summaryrefslogtreecommitdiffstats
path: root/modules-available/minilinux/page.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/minilinux/page.inc.php')
-rw-r--r--modules-available/minilinux/page.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules-available/minilinux/page.inc.php b/modules-available/minilinux/page.inc.php
index 035a45d5..2099b8c5 100644
--- a/modules-available/minilinux/page.inc.php
+++ b/modules-available/minilinux/page.inc.php
@@ -40,6 +40,11 @@ class Page_MiniLinux extends Page
$sourceList = [];
// Group by branch for detailed listing, add usage info
foreach ($branches as &$branch) {
+ // Little hack: We abuse the title for ordering, so if the second char is a space, assume the first one
+ // is just for sort order and remove it.
+ if ($branch['title'][1] === ' ') {
+ $branch['title'] = substr($branch['title'], 2);
+ }
$bid = 'div-' . str_replace('/', '-', $branch['branchid']);
if (!isset($sourceList[$branch['sourceid']])) {
$sourceList[$branch['sourceid']] = ['sourceid' => $branch['sourceid'], 'list' => []];