Skip to content

Commit

Permalink
Orders packages by status then package name.
Browse files Browse the repository at this point in the history
  • Loading branch information
shelleydoljack committed Dec 19, 2018
1 parent 62aabaa commit 55118b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/packages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PackagesController < ApplicationController
# GET /packages
# GET /packages.json
def index
@packages = Package.all
@packages = Package.all.order(:package_status, :package_name)
end

# GET /packages/1
Expand Down

0 comments on commit 55118b1

Please sign in to comment.