I would
```ruby
@provider.discovered_repos.try :sort or []
```