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

Commit 119217f

Browse files
Change order of jobs when viewing in admin view
1 parent 8aea25a commit 119217f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/jobs_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def index
1111
@page_description = 'Technical & software development jobs listed on MENAdevs'
1212
@page_keywords = AppSettings.meta_tags_keywords
1313

14-
@jobs = Job.approved_jobs.order(:posted_on).reverse_order
14+
@jobs = Job.approved_jobs.order("posted_on DESC")
1515

1616
if (user_signed_in? && params.has_key?(:state))
1717
filter_by_params(current_user)
@@ -22,7 +22,7 @@ def index
2222

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

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

0 commit comments

Comments
 (0)