mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-03-24 04:25 pm

[dw-free] Okay, I was tired of this not being alphabetical. Sort groups on the circle add page.

[commit: http://hg.dwscoalition.org/dw-free/rev/e6e9c6c7d996]

Okay, I was tired of this not being alphabetical. Sort groups on the circle
add page.

Patch by [staff profile] mark.

Files modified:
  • htdocs/manage/circle/add.bml
--------------------------------------------------------------------------------
diff -r 9fe35c6452e1 -r e6e9c6c7d996 htdocs/manage/circle/add.bml
--- a/htdocs/manage/circle/add.bml	Tue Mar 24 01:01:36 2009 +0000
+++ b/htdocs/manage/circle/add.bml	Tue Mar 24 16:25:30 2009 +0000
@@ -199,7 +199,8 @@
         $body .= "<?p &nbsp;<br />";
         $body .= "$ML{'.groups.text1'} " . LJ::help_icon('customgroups', '&nbsp;') . "p?>\n";
         $body .= "<blockquote>\n";
-           foreach my $g ( keys %$trust_groups ) {
+           foreach my $g ( sort { lc $trust_groups->{$a}->{groupname} cmp
+                                  lc $trust_groups->{$b}->{groupname} } keys %$trust_groups ) {
                 my $ck = ( $remote->trustmask( $u ) & (1 << $g) );
 
                 $body .= LJ::html_check({ 'name'     => "bit_$g",
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org