From: Paul Hänsch Date: Tue, 16 Nov 2021 04:11:26 +0000 (+0100) Subject: Bugfix: keep tag order X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=09b108b3ecd6c49467d0030576468c6cbf93c2f0;p=serve0 Bugfix: keep tag order --- diff --git a/widgets.sh b/widgets.sh index 7daf540..4e93629 100755 --- a/widgets.sh +++ b/widgets.sh @@ -20,7 +20,7 @@ if [ ! -s "$c_tags" -o ! -s "$c_tagcategories" ] \ s;^.*\ttags=([^\t]*)\t.*$;\1;; s;,;\n;g; ' \ - | sort |uniq -c |sed -E 's;^ *[0-9]+ ;;;' |sort -rn \ + | sort |uniq -c |sort -rn |sed -E 's;^ *[0-9]+ ;;;' \ | UNSTRING | HTML \ | sed -E 's; \;;\n;g; s;\n+;\n;g;' )"