Sort multiple lines of source in-place.
After making a selection, choose Sort Selected Lines from VAssistX | Tools (Alt+X, T, S or in VS2019 Alt+X, X, T, S).
![](/~/media/wholetomato/kb/documentation/sort-selected-lines/sortmenu.ashx?la=en&hash=002B2CEA5712736DFE0836717644473E037F2153)
A dialog opens in which you specify preferences for the sort.
![](/~/media/wholetomato/kb/documentation/sort-selected-lines/sortdialog.ashx?la=en&hash=CD6B3439CF111B0E2839E5D5EAF98C64D2539A05)
As with all dialogs in Visual Assist, you can navigate the dialog with keyboard or mouse.
Behavior
If you sort a list whose lines terminate with commas and a semicolon, be sure to reposition the semicolon after the sort.
If the last line of your selection is partially selected, the line is included in a sort. If that line terminates at EOF, an extra EOL in inserted at EOF.
Registry Settings