Show screenshots ordered by upload date
This commit is contained in:
parent
f0409ade1e
commit
197f81ce7a
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ class PackagesController < ApplicationController
|
|||
|
||||
# Return packages matching the criteria given by parameters
|
||||
def query_packages
|
||||
packages = Package.includes(:screenshots).order(visits: :desc)
|
||||
packages = Package.includes(:screenshots).order(created_at: :desc)
|
||||
|
||||
# text search
|
||||
if params[:search].present?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue