summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-01-28 05:46:14 +0000
committerKatolaZ <katolaz@freaknet.org>2019-01-28 05:46:14 +0000
commit2ecad5ca4cb69a32680683e400154e9cffb373f4 (patch)
treed101d0eb2829c2ea0827289f476d9c60eb50b0d6
parentd679c9b229da21f8c356828891c0753f9b7ecfa5 (diff)
fix sorting by date and name
-rwxr-xr-xphrollo2
1 files changed, 1 insertions, 1 deletions
diff --git a/phrollo b/phrollo
index 1e2ff91..4f6f67b 100755
--- a/phrollo
+++ b/phrollo
@@ -23,5 +23,5 @@ while read -r D T S H P SH; do
printf "%s\t%s\t%s\t%s\t%s\t%s\n" "$D" "$T" "$S" "$H" "$P" "$SH"
done < "${FILEIN}" | sort -rnk1 -k2 | tee "${FILEOUT}" | \
sed -r "s/^([0-9][0-9]*) /1(\1) /g;s/ [a-f0-9][a-f0-9]*$//g" |\
- sort -k1 -k2
+ sort -rk1 -k2