From c8fcda0372c03ba982bb87aea194ab86e43cc74a Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Fri, 28 Aug 2015 21:54:36 -0600 Subject: [PATCH] Order plugins and themes alphabetically - #121 --- themes/grav/templates/partials/plugins-list.html.twig | 3 +-- themes/grav/templates/partials/themes-list.html.twig | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/themes/grav/templates/partials/plugins-list.html.twig b/themes/grav/templates/partials/plugins-list.html.twig index 4d702443..7a52dab0 100644 --- a/themes/grav/templates/partials/plugins-list.html.twig +++ b/themes/grav/templates/partials/plugins-list.html.twig @@ -5,8 +5,7 @@ - {% for slug, package in admin.plugins(not installing) %} - {% set plugin = package.toArray() %} + {% for slug, plugin in admin.plugins(not installing).toArray|ksort %} {% set data = admin.data('plugins/' ~ slug) %} diff --git a/themes/grav/templates/partials/themes-list.html.twig b/themes/grav/templates/partials/themes-list.html.twig index 47703fae..689cb6c2 100644 --- a/themes/grav/templates/partials/themes-list.html.twig +++ b/themes/grav/templates/partials/themes-list.html.twig @@ -5,8 +5,7 @@
- {% for slug, package in admin.themes(not installing) %} - {% set theme = package.toArray() %} + {% for slug, theme in admin.themes(not installing).toArray|ksort %} {% set state = 'inactive' %} {% if (installing) %}{% set state = 'installing' %}{% endif %} {% if (config.get('system.pages.theme') == slug) %}{% set state = 'active' %}{% endif %}