Sort the local Sones in the sender dropdown.
[Sone.git] / src / main / resources / templates / include / viewPost.html
index 74e3450..dc2912e 100644 (file)
@@ -1,5 +1,5 @@
-<a name="post-<% post.id|html>"></a>
 <div id="<% post.id|html>" class="post<%if loop.last> last<%/if><%if post.new> new<%/if>">
+       <a name="post-<% post.id|html>"></a>
        <div class="post-time hidden"><% post.time|html></div>
        <div class="post-author hidden"><% post.sone.id|html></div>
        <div class="avatar">
@@ -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>