Quellcode durchsuchen

Order tags alphabetically in img-chon.sh

Frans Bergman vor 5 Jahren
Ursprung
Commit
bd705281ef
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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")