On 2013-11-27 00:34, Lionel Cons wrote: > function nanosort { typeset -A a ; integer k=0; while read i ; > do key="$i$((k++))" a[$key]="$i" ; done ; printf "%s\n" "${a[@]}" ; } Nifty, thanks! :) //Jim