]> git.plutz.net Git - serve0/blobdiff - widgets.sh
Bugfix: keep tag order
[serve0] / 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;'
   )"