From d9418853965996e3f683c5dead05db6c3a2393cf Mon Sep 17 00:00:00 2001 From: "Luis M. Rodriguez-R" Date: Wed, 24 Jul 2024 18:09:05 +0200 Subject: [PATCH] Update genomes_controller.rb --- app/controllers/genomes_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/genomes_controller.rb b/app/controllers/genomes_controller.rb index 2b1103d8..741d05e8 100644 --- a/app/controllers/genomes_controller.rb +++ b/app/controllers/genomes_controller.rb @@ -13,7 +13,8 @@ class GenomesController < ApplicationController # GET /genomes or /genomes.json def index - @genomes = Genome.all.paginate(page: params[:page], per_page: 30) + @genomes = Genome.all.order(created_at: :desc) + .paginate(page: params[:page], per_page: 30) @crumbs = ['Genomes'] end