Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do the sorting ourselves.
  • Loading branch information
theory committed Aug 26, 2005
1 parent d7d51ad commit 4c1207b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion templates/XHTML/sites.mc
@@ -1,6 +1,14 @@
% $m->comp('/util/xhtml/output_body.mc', %ARGS);
<dl class="sites">
% $burner->display_element($_) for $element->get_elements('site_profile');
<%perl>;
# Handle the ordering here; the editor can't be trusted to get it right.
$burner->display_element($_)
for
map { $_->[1] }
sort { $a->[0] cmp $b->[0] }
map { [ lc $_->get_data('name') => $_ ] }
$element->get_elements('site_profile');
</%perl>\
</dl>
<%doc>

Expand Down

0 comments on commit 4c1207b

Please sign in to comment.