```ruby
class ContractorsController < ApplicationController
  def index
    @contractors = Contractor.all
  end
end
```

Sort contracts by highest total value
user
```ruby
class ContractorsController < ApplicationController
  def index
    @contractors = Contractor.all.sort { |a, b| b.total_est_contract_value <=> a.total_est_contract_value }
  end
end
```
assistant