Browse Source

Order tags alphabetically in img-chon.sh

Frans Bergman 5 years ago
parent
commit
bd705281ef
1 changed files with 2 additions and 2 deletions
  1. 2 2
      .scripts/img-chon.sh

+ 2 - 2
.scripts/img-chon.sh

@@ -94,9 +94,9 @@ case $1 in
     "tags")
         if [ -f "$2" ]; then
             hsh="$(get_hash "$2")"
-            $SQL "SELECT DISTINCT tag FROM image_tag WHERE hash = '$hsh';"
+            $SQL "SELECT DISTINCT tag FROM image_tag WHERE hash = '$hsh' ORDER BY tag;"
         else
-            $SQL "SELECT DISTINCT tag FROM image_tag;"
+            $SQL "SELECT DISTINCT tag FROM image_tag ORDER BY tag;"
         fi
         ;;
     "query-dmenu")