TOOL » VIM

Sort

Usage

Select the lines with Visual mode, or apply to all lines by starting the command with %.

vim
%sort
%sort i  " Case insensitive

TIP

Check :help :sort for more.