@jvanbaarsen try 
``` ruby
has_many :issues,             dependent: :destroy, -> { order(state: :desc, created_at: :desc) }
```