summaryrefslogtreecommitdiff
path: root/app/finders/admin/runners_finder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/admin/runners_finder.rb')
-rw-r--r--app/finders/admin/runners_finder.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/finders/admin/runners_finder.rb b/app/finders/admin/runners_finder.rb
index 7adee486e33..3c2d7ee7d76 100644
--- a/app/finders/admin/runners_finder.rb
+++ b/app/finders/admin/runners_finder.rb
@@ -43,8 +43,7 @@ class Admin::RunnersFinder < UnionFinder
end
def sort!
- sort = sort_key == 'contacted_asc' ? { contacted_at: :asc } : { created_at: :desc }
- @runners = @runners.order(sort)
+ @runners = @runners.order_by(sort_key)
end
def paginate!