82 |
|
|
83 |
# sort subrouting using order="" attribute |
# sort subrouting using order="" attribute |
84 |
sub by_order { |
sub by_order { |
85 |
return 0 if (! $config->{indexer}->{$a}->{order}); |
my $va = $config->{indexer}->{$a}->{order} || |
86 |
return 0 if (! $config->{indexer}->{$b}->{order}); |
$config->{indexer}->{$a}; |
87 |
|
my $vb = $config->{indexer}->{$b}->{order} || |
88 |
|
$config->{indexer}->{$b}; |
89 |
|
|
90 |
return $config->{indexer}->{$a}->{order} <=> |
return $va <=> $vb; |
|
$config->{indexer}->{$b}->{order} ; |
|
91 |
} |
} |
92 |
|
|
93 |
foreach my $field (sort by_order keys %{$config->{indexer}}) { |
foreach my $field (sort by_order keys %{$config->{indexer}}) { |
94 |
|
|
95 |
$field=x($field); |
$field=x($field); |
|
|
|
96 |
$field_usage{$field}++; |
$field_usage{$field}++; |
97 |
|
|
98 |
my $swish_data = ""; |
my $swish_data = ""; |