aboutsummaryrefslogtreecommitdiff
path: root/app/views/mini_environments
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-07-05 13:35:53 +0100
committerChristopher Baines <mail@cbaines.net>2018-07-05 13:35:53 +0100
commit6b1fffca32c61851f396d0ead44013b5c789c3ad (patch)
treec1e15a5add093c20d280aef042206683fa4c5f8e /app/views/mini_environments
parent333cb1a3fd859ab3a80ea71a87e712983e9da921 (diff)
downloadgovuk-mini-environment-admin-6b1fffca32c61851f396d0ead44013b5c789c3ad.tar
govuk-mini-environment-admin-6b1fffca32c61851f396d0ead44013b5c789c3ad.tar.gz
Show the most recent mini environments at the top
Diffstat (limited to 'app/views/mini_environments')
-rw-r--r--app/views/mini_environments/index.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/mini_environments/index.html.erb b/app/views/mini_environments/index.html.erb
index a5c0a5e..3d57c5b 100644
--- a/app/views/mini_environments/index.html.erb
+++ b/app/views/mini_environments/index.html.erb
@@ -31,7 +31,7 @@ License along with the GOV.UK Mini Environment Admin. If not, see
<h1>Mini environments</h1>
<br>
-<% MiniEnvironment.all.each do |mini_environment| %>
+<% MiniEnvironment.order(id: :desc).each do |mini_environment| %>
<% status = mini_environment.status %>
<a href="<%= mini_environment_path mini_environment %>">