]> git.plutz.net Git - serve0/commitdiff
numeric order when sorting by name
authorPaul Hänsch <paul@plutz.net>
Tue, 31 Dec 2019 16:50:57 +0000 (17:50 +0100)
committerPaul Hänsch <paul@plutz.net>
Tue, 31 Dec 2019 16:50:57 +0000 (17:50 +0100)
list.sh

diff --git a/list.sh b/list.sh
index b941aa7f246d32a3a9e5ff09c0ee509e9ebd2b30..30dfc42977d7c9c1aa1852d7683a94e40dca2bff 100644 (file)
--- a/list.sh
+++ b/list.sh
@@ -107,7 +107,7 @@ list_order(){
   local fm fn fn al length ln h w t c name buffer l
 
   if [ $ORDER = Name ]; then
-    sort -k6 |sed 's;^;metashort\t;;'
+    sort -n -k6 |sed 's;^;metashort\t;;'
   elif [ $ORDER = Group ]; then
     { sort -k6; echo '0 0 0 tags= comment= _'; } \
     | while read -r length h w t c name; do