about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-31 00:10:02 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-31 00:10:02 -0500
commit964054b6dbabf119c9dea9cfa0b71011ace8df07 (patch)
treeacf395c174de644a7bccd5bda86d8239aa802e25 /app/controllers
parent9e9a593f5a8e8803e56a8d8398a90759a413713b (diff)
sort instance list by most recent
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/admin/instances_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/instances_controller.rb b/app/controllers/admin/instances_controller.rb
index 6dd659a30..b8118ac91 100644
--- a/app/controllers/admin/instances_controller.rb
+++ b/app/controllers/admin/instances_controller.rb
@@ -34,7 +34,7 @@ module Admin
     helper_method :paginated_instances
 
     def ordered_instances
-      paginated_instances.map { |resource| Instance.new(resource) }
+      paginated_instances.map { |resource| Instance.new(resource) }.sort_by(&:updated_at).reverse!
     end
 
     def filter_params