git://git.jankratochvil.net
/
kewensis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c345521
)
Records are now again properly sorted by "name" (not "id")
author
short
<>
Mon, 24 Dec 2001 02:52:57 +0000
(
02:52
+0000)
committer
short
<>
Mon, 24 Dec 2001 02:52:57 +0000
(
02:52
+0000)
kewensis-collect.pl
patch
|
blob
|
history
diff --git
a/kewensis-collect.pl
b/kewensis-collect.pl
index
aba360d
..
ba61527
100755
(executable)
--- a/
kewensis-collect.pl
+++ b/
kewensis-collect.pl
@@
-15,15
+15,6
@@
$debugmatch=0;
$doimport=1;
$import_xlate=1;
$doimport=1;
$import_xlate=1;
-sub name_to_key
-{
-my( $r )=@_;
-
- $r=~tr/A-Z/a-z/;
- $r=~tr/a-z0-9//cd;
- return $r;
-}
-
sub rec_to_name
{
my( %rec )=@_;
sub rec_to_name
{
my( %rec )=@_;
@@
-260,7
+251,7
@@
sub OUT_flush
if (defined $maxsize) {
my($fileno)=-1;
my($filename,$fileid);
if (defined $maxsize) {
my($fileno)=-1;
my($filename,$fileid);
- foreach $owner (sort keys %OWNS) {
+ foreach $owner (sort
{ $DB{$b}{"name"} cmp $DB{$a}{"name"}; }
keys %OWNS) {
my( $child );
if ($fileno<0 || tell(OUT)>=$maxsize) {
my( $child );
if ($fileno<0 || tell(OUT)>=$maxsize) {
@@
-305,7
+296,7
@@
my($preinsert,$postinsert,%rec)=@_;
my($printrecref)=(defined $maxsize ? \&format_href : \&format_record );
my($printrecref)=(defined $maxsize ? \&format_href : \&format_record );
-foreach $owner (sort keys %OWNS) {
+foreach $owner (sort
{ $DB{$b}{"name"} cmp $DB{$a}{"name"}; }
keys %OWNS) {
my( $child );
print OUT "<p>";
my( $child );
print OUT "<p>";