Result

AC

Code [DL]

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

stdin

4608423406058255005130742599669272003018818472403099745806632995230181065589733774184343526492761661

stdout

0000000000000011111111222222222233333333334444444444455555555556666666666677777777888888888999999999

stderr

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

strace