mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Make '0' and '' be equivalent to 'default' for the 'order' attribute of the <set> element. This makes defaulting actually work (missing attributes seem to get set to ''?).
This commit is contained in:
parent
9868c69a29
commit
b382ef763c
@ -474,7 +474,7 @@ sub genericSort {
|
||||
my $self = shift;
|
||||
my($order, @list) = @_;
|
||||
# sort the list (in reverse order!)
|
||||
if (defined($order) and scalar(@list)) {
|
||||
if (defined($order) and $order and scalar(@list)) {
|
||||
if ($order eq 'lexical') {
|
||||
return sort { $b cmp $a } @list;
|
||||
} elsif ($order eq 'reverse lexical') {
|
||||
|
Loading…
Reference in New Issue
Block a user