Skip to content

Commit

Permalink
Update sorting for Service APIs to be sorted by namespace, like the s…
Browse files Browse the repository at this point in the history
…idebar. (#1597)
  • Loading branch information
kstich committed Aug 13, 2018
1 parent 4f34eaf commit f027675
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/docs/classes/DocsBuilder.php
Expand Up @@ -119,7 +119,11 @@ public function build()
}
}

ksort($services, SORT_NATURAL | SORT_FLAG_CASE);
uasort($services, function($a, $b) {
$serviceA = current($a);
$serviceB = current($b);
return strcasecmp($serviceA->namespace, $serviceB->namespace);
});
$this->updateHomepage($services);
$this->updateClients($services);
$this->updateAliases($services, $aliases);
Expand Down

0 comments on commit f027675

Please sign in to comment.