The effect is much the same but id is guaranteed to give a stable
sort if two traces have the same timestamp.
@page_size = 20
@traces = @traces.visible
@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)
@traces = @traces.offset((@page - 1) * @page_size)
@traces = @traces.limit(@page_size)
@traces = @traces.includes(:user, :tags)