Make TraceController#list sort by id instead of timestamp
The effect is much the same but id is guaranteed to give a stable sort if two traces have the same timestamp.
This commit is contained in:
parent
0814b4096c
commit
94ab5c3635
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ class TraceController < ApplicationController
|
|||
@page_size = 20
|
||||
|
||||
@traces = @traces.visible
|
||||
@traces = @traces.order("timestamp DESC")
|
||||
@traces = @traces.order(:id => :desc)
|
||||
@traces = @traces.offset((@page - 1) * @page_size)
|
||||
@traces = @traces.limit(@page_size)
|
||||
@traces = @traces.includes(:user, :tags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue