Use:
grep "pattern" the_file.csv | sort -t, -nk 23 | column -ts,
or
grep "pattern" the_file.csv | sed 's/,/ /g' | sort -nk 23 | column -t
with exponential notation use sort -g instead of sort -n
Explanation:
sort -nkk 23: sort numeric (-n) on column number 23 (sort -kn: compare according to string numerical valuesort 23-g): compare according to general numerical valuesort -t,: sort with delimiter,column -t: make columns based on whitespaces or using delimiter (-s<delimiter>)sed 's/,/ /g': substitute (s) any occurences of,with a space' 'on all lines (g)