mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
sort maps
This commit is contained in:
parent
54901fe594
commit
3c47087cad
1 changed files with 3 additions and 2 deletions
|
|
@ -12,8 +12,9 @@ class InfoProvider extends BaseProvider {
|
|||
*/
|
||||
public function listMaps(): array {
|
||||
$query = $this->getQueryBuilder();
|
||||
$query->select('map', 'count')
|
||||
->from('map_list');
|
||||
$query->select('map')
|
||||
->from('map_list')
|
||||
->orderBy('count', 'DESC');
|
||||
$result = $query->execute();
|
||||
|
||||
return $result->fetchAll(PDO::FETCH_COLUMN);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue