```ruby
class DemoController < ApplicationController
  include SmartListing::Helper::ControllerExtensions
  helper SmartListing::Helper

  def index
    return redirect_to root_path if Rails.env.production?

    smart_listing_create :procedures,
                         Procedure.where(archived: false, published: true),
                         partial: "demo/list",
                         array: true
  end
end
```

Add a sort order to the demo procedures list
user
```ruby
class DemoController < ApplicationController
  include SmartListing::Helper::ControllerExtensions
  helper SmartListing::Helper

  def index
    return redirect_to root_path if Rails.env.production?

    smart_listing_create :procedures,
                         Procedure.where(archived: false, published: true).order("id DESC"),
                         partial: "demo/list",
                         array: true
  end
end
```
assistant