```ruby
class CocoaPod < ActiveRecord::Base
  after_initialize :init_stars
  
  def init_stars
    self.stars ||= 0
  end
  
  def dependencies
    []
  end
end
```

Order cocoa pod by stars.
user
```ruby
class CocoaPod < ActiveRecord::Base
  default_scope { order('stars DESC') }
  
  after_initialize :init_stars
  
  def init_stars
    self.stars ||= 0
  end
  
  def dependencies
    []
  end
end
```
assistant