:[range]sor[t][!] [b][f][i][n][o][r][u][x] [/{pattern}/]
Note: Options [n][f][x][o][b] are mutually exclusive.
See sorting in the vim manual for the canonical explanation