diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-31 00:10:02 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-31 00:10:02 -0500 |
commit | 964054b6dbabf119c9dea9cfa0b71011ace8df07 (patch) | |
tree | acf395c174de644a7bccd5bda86d8239aa802e25 /app | |
parent | 9e9a593f5a8e8803e56a8d8398a90759a413713b (diff) |
sort instance list by most recent
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/admin/instances_controller.rb | 2 |
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 |