Sort displayed groups.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 31 Jul 2012 05:12:12 +0000 (07:12 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 31 Jul 2012 05:12:12 +0000 (07:12 +0200)
src/main/resources/templates/admin.edit-artist

index 77d2d35..d6fbe87 100644 (file)
@@ -28,7 +28,7 @@
 
 <h2>Groups</h2>
 
-<%foreach artist.groups group>
+<%foreach artist.groups group|sort>
 
        <form action="admin.edit-artist" method="post" accept-charset="utf-8">
 
@@ -55,7 +55,7 @@
        <div>
                Add Group:
                <select name="group">
-                       <%foreach dataManager.allGroups group>
+                       <%foreach dataManager.allGroups group|sort>
                                <option value="<%group.id|html>"><%group.name|html></option>
                        <%/foreach>
                </select>