Sort by id, not created_at
This commit is contained in:
parent
39b90bcec4
commit
3fb24bc621
|
@ -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'
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Sort JobsController by id, not created_at
|
||||
merge_request:
|
||||
author:
|
||||
type: fixed
|
Loading…
Reference in New Issue