Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Commit b61bd00

Browse files
Order jobs for admin using updated and created
1 parent 9e3135a commit b61bd00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/jobs_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def index
2222

2323
# GET /list-jobs-admin
2424
def list_jobs
25-
@jobs = Job.all.order(:updated_at).reverse_order
25+
@jobs = Job.all.order("updated_at DESC, created_at DESC")
2626

2727
if params.has_key?(:state)
2828
filter_by_params

0 commit comments

Comments
 (0)