📅  最后修改于: 2022-03-11 14:49:29.547000             🧑  作者: Mango
# sorts array arr and stores it in array arrSorted in ascending order
# %d for integers
# %f for floats
readarray -t arrSorted < <(printf '%d\n' "${arr[@]}" | sort)