Sort the local Sones in the sender dropdown.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 2 Feb 2011 13:12:06 +0000 (14:12 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 2 Feb 2011 13:12:06 +0000 (14:12 +0100)
src/main/resources/templates/include/viewPost.html

index 82c16c9..dc2912e 100644 (file)
@@ -84,7 +84,7 @@
                                                <input type="hidden" name="post" value="<% post.id|html>" />
                                                <div class="sender">
                                                        <select name="sender" title="<%= View.UpdateStatus.Text.ChooseSenderIdentity|l10n|html>">
-                                                               <%foreach localSones localSone>
+                                                               <%foreach localSones localSone|sort>
                                                                        <option value="<% localSone.id|html>"<%if localSone.current> selected="selected"<%/if>><% localSone.niceName|html></option>
                                                                <%/foreach>
                                                        </select>