summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/bibsort.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bibsort.pl b/bin/bibsort.pl
index 89133c87..0d132c19 100644
--- a/bin/bibsort.pl
+++ b/bin/bibsort.pl
@@ -26,7 +26,7 @@ while (<>) {
 sub byLast {
 	my ($af, $al) = split /\s(\S+)(,.*)?$/, $a;
 	my ($bf, $bl) = split /\s(\S+)(,.*)?$/, $b;
-	$al cmp $bl || $af cmp $bf;
+	($al // $af) cmp ($bl // $bf) || $af cmp $bf;
 }
 
 foreach $ref (@refs) {
18Add Blondie — Heart of GlassJune McEnroe 2018-08-18Set FCEDIT=$EDITORJune McEnroe 2018-08-18Only post commits with bodies to MastodonJune McEnroe 2018-08-18Run tf/cfg link script with /bin/shJune McEnroe 2018-08-18Run {,s,t}up with /bin/shJune McEnroe 2018-08-18Use whence instead of typeJune McEnroe 2018-08-18Cut off path components until right prompt fitsJune McEnroe 2018-08-17Add "private" alias to source encrypted fileJune McEnroe 2018-08-17Add vim mapping to add a #includeJune McEnroe