Skip to content

Commit

Permalink
Sort databases and collections
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelTallet committed Nov 16, 2020
1 parent 1390f3e commit df844f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @var string
*/
define('MPG_APP_VERSION', '1.0.9');
define('MPG_APP_VERSION', '1.1.0');

/**
* Development mode?
Expand Down
4 changes: 4 additions & 0 deletions src/Controllers/DatabaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public static function getDatabaseNames() : array {

}

sort($databaseNames);

return $databaseNames;

}
Expand Down Expand Up @@ -167,6 +169,8 @@ public function listCollectionsAction() : Response {
return new JsonResponse(500, ErrorNormalizer::normalize($th, __METHOD__));
}

sort($collectionNames);

return new JsonResponse(200, $collectionNames);

}
Expand Down

0 comments on commit df844f1

Please sign in to comment.