Parcourir la source

Order tags alphabetically in img-chon.sh

Frans Bergman il y a 5 ans
Parent
commit
bd705281ef
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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")