From: Paul Hänsch Date: Tue, 31 Dec 2019 16:50:57 +0000 (+0100) Subject: numeric order when sorting by name X-Git-Url: http://git.plutz.net/?p=serve0;a=commitdiff_plain;h=669103393f336de7895ff366af54da56f4192b4d numeric order when sorting by name --- diff --git a/list.sh b/list.sh index b941aa7..30dfc42 100644 --- 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