Vim command for sorting a set of lines.

Vim ships with a built-in sort utility and you can also specify an external sorting tool.

e.g. in order to keep only unique lines in Vim, you would:

:{range}sort u

More informations: :h sort