implemented a simple search for memes

You can move the `order` method outside of the `if..else` conditional since it is used in both branches:

```ruby
if params[:search]
  @memes = Meme.where('name ILIKE ?', "%#{params[:search]}%")
else
  @memes = Meme.all
end

@memes = @memes.order(:created_at).page(params[:page])
```