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-11-10 02:27 am

[dw-free] Make style wizard save user layer properties in alphabetical order

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

http://bugs.dwscoalition.org/show_bug.cgi?id=1751

Alphabetize properties into layers from customize wizard.

Patch by [personal profile] afuna.

Files modified:
  • cgi-bin/LJ/S2.pm
--------------------------------------------------------------------------------
diff -r d9af6ad20a4a -r 69eb3b256b14 cgi-bin/LJ/S2.pm
--- a/cgi-bin/LJ/S2.pm	Mon Nov 09 06:03:52 2009 +0000
+++ b/cgi-bin/LJ/S2.pm	Tue Nov 10 02:27:11 2009 +0000
@@ -1181,7 +1181,7 @@ sub layer_compile_user
     $s2 .= "layerinfo \"type\" = \"user\";\n";
     $s2 .= "layerinfo \"name\" = \"Auto-generated Customizations\";\n";
 
-    foreach my $name (keys %$overrides) {
+    foreach my $name (sort keys %$overrides) {
         next if $name =~ /\W/;
         my $prop = $overrides->{$name}->[0];
         my $val = $overrides->{$name}->[1];
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

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