diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-09-26 13:59:00 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-09-26 13:59:56 +0300 |
commit | 3fb24bc62183f638bad520fed6f8dd168daf6817 (patch) | |
tree | bb13712f68568877d794e6b44054bbe0d02856c4 /app/controllers | |
parent | 39b90bcec48f26a5a8c1eea468ffca7d89097f8b (diff) |
Sort by id, not created_at
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/jobs_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/jobs_controller.rb b/app/controllers/projects/jobs_controller.rb index 96abdac91b6..1b985ea9763 100644 --- a/app/controllers/projects/jobs_controller.rb +++ b/app/controllers/projects/jobs_controller.rb @@ -11,7 +11,7 @@ class Projects::JobsController < Projects::ApplicationController def index @scope = params[:scope] @all_builds = project.builds.relevant - @builds = @all_builds.order('created_at DESC') + @builds = @all_builds.order('ci_builds.id DESC') @builds = case @scope when 'pending' |