]> git.plutz.net Git - serve0/commitdiff
Bugfix: keep tag order
authorPaul Hänsch <paul@plutz.net>
Tue, 16 Nov 2021 04:11:26 +0000 (05:11 +0100)
committerPaul Hänsch <paul@plutz.net>
Tue, 16 Nov 2021 04:11:26 +0000 (05:11 +0100)
widgets.sh

index 7daf540cea32c177a6d781dc125e643398530c6d..4e93629165dedb3386802eb692e8bd33399917ca 100755 (executable)
@@ -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;&#x0A\;;\n;g; s;\n+;\n;g;'
   )"