Sort by id, not created_at

This commit is contained in:
Kamil Trzcinski 2017-09-26 12:59:00 +02:00
parent 39b90bcec4
commit 3fb24bc621
2 changed files with 6 additions and 1 deletions

View File

@ -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'

View File

@ -0,0 +1,5 @@
---
title: Sort JobsController by id, not created_at
merge_request:
author:
type: fixed