I would like to sort the characters in a string.
E.g.
echo cba | sort-command abc
Is there a command that will allow me to do this
This is cheating (because it uses Perl), but works. :-P
echo cba | perl -pe 'chomp; $_ = join "", sort split //'