From db66912837817e3878db8f845a305399ddc29fe3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 13 Mar 2023 11:38:34 +0200 Subject: Use numeric sort for commit numbers in manage script --- bpkg-util/manage.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpkg-util/manage.in b/bpkg-util/manage.in index a0add0b..39d4ee7 100644 --- a/bpkg-util/manage.in +++ b/bpkg-util/manage.in @@ -2144,7 +2144,7 @@ while true; do # IFS) because neither space nor tab characters (the other members of IFS) # can occur in the keys. # - bundle=($(sed 's/ /\n/g' <<<"${bundle[*]}" | sort -)) + bundle=($(sed 's/ /\n/g' <<<"${bundle[*]}" | sort --numeric-sort -)) printf "\n" read -p "[${bundle[*]}][,m,d,s,c,p,l,q,?]: " opt -- cgit v1.1