[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
afuna.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1751
Alphabetize properties into layers from customize wizard.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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]; --------------------------------------------------------------------------------