a=() while read -n 1 c;do a+=($c);done for((i=0;i<100;i++));do for((j=0;j<99;j++));do if [[ a[$i] < a[$j] ]];then t=a[$i];a[$i]=a[$j];a[$j]=$t;fi;done;done echo $(IFS=;echo "${a[*]}")