sort: fix issue with -rk in previous commit

* src/sort.c (keycompare): Fix typo causing -r to be
effectively ignored with -k.
Fixes https://bugs.gnu.org/55622
This commit is contained in:
Pádraig Brady committed 2022-05-25 09:47:40 +01:00
1 parent a351fdd6fc
commit 4e0167ea14
1 file changed
+1 -1
+1 -1
View File
@@ -2795,7 +2795,7 @@ keycompare (struct line const *a, struct line const *b)
}
if (key->reverse)
diff = diff < 0 ? -1 : -diff;
diff = diff < 0 ? 1 : -diff;
return diff;
}