summaryrefslogtreecommitdiff
path: root/sfeed_update
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-04-12 19:51:50 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-04-12 19:51:50 +0200
commit0733230d6c2e6404991736e99959f9c409c64ab3 (patch)
treef1e6a7116403ddb9129330380f14b8800195d638 /sfeed_update
parent742ed57ac88f52434f966a0b44dc8bdd9dd9983b (diff)
sfeed_update: fix sorting on fields: id, link, title
Diffstat (limited to 'sfeed_update')
-rwxr-xr-xsfeed_update4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_update b/sfeed_update
index 8185345..5bc6388 100755
--- a/sfeed_update
+++ b/sfeed_update
@@ -33,8 +33,8 @@ loadconfig() {
merge() {
# unique sort by id, link, title.
# order by timestamp (desc).
- (sort -t ' ' -u -k7,7 -k4,4 -k3,3 "$1" "$2" 2>/dev/null) |
- sort -t ' ' -k1r,1
+ (sort -t ' ' -u -k6,6 -k3,3 -k2,2 "$1" "$2" 2>/dev/null) |
+ sort -t ' ' -k1rn,1
}
# fetch a feed via HTTP/HTTPS etc.