The built-in VIM :sort command sorts lines of text. I want to sort words in a single line, e.g. transform the line
:sort
b a d c e f
Maybe you preffer Python:
!python -c "import sys; print ' '.join(sorted(sys.stdin.read().split()))"
Visual select text, and execute this line.