fix: sort repositories by name

This commit is contained in:
Andras Bacsai 2024-03-05 09:40:38 +01:00
parent c6740cfea0
commit 4d72787c83

View File

@ -79,6 +79,7 @@ public function loadRepositories($github_app_id)
$this->loadRepositoryByPage();
}
}
$this->repositories = $this->repositories->sortBy('name');
if ($this->repositories->count() > 0) {
$this->selected_repository_id = data_get($this->repositories,'0.id');
}