Commit 3b73bd5d authored by Franco Fichtner's avatar Franco Fichtner

firmware: correctly sort package listings

parent cb0d1842
...@@ -146,7 +146,7 @@ class FirmwareController extends ApiControllerBase ...@@ -146,7 +146,7 @@ class FirmwareController extends ApiControllerBase
} }
uksort($sorted, function ($a, $b) { uksort($sorted, function ($a, $b) {
return strnatcmp($a, $b); return strnatcasecmp($a, $b);
}); });
$response['all_packages'] = $sorted; $response['all_packages'] = $sorted;
...@@ -449,6 +449,10 @@ class FirmwareController extends ApiControllerBase ...@@ -449,6 +449,10 @@ class FirmwareController extends ApiControllerBase
} }
$response[$type][] = $translated; $response[$type][] = $translated;
} }
usort($response[$type], function ($a, $b) {
return strnatcasecmp($a['name'], $b['name']);
});
} }
/* also pull in changelogs from here */ /* also pull in changelogs from here */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment