Sort on $-values (US formatted numbers with commas as the thousands separator) in fields – Debian
My trivial test shows that sort can sort on $-values (like $2,734, $278,280, etc), the US formatted numbers with commas as the thousands separator, just fine: $ echo -e '$2,734n$278,280n$26,845' | sort $2,734 $26,845 $278,280 $ echo -e '$5,088n$26n$8,714' |…