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=ru&hash=7D64252ABBF7B59B5336AC7D0B8E120E439FDC29)
A dialog opens in which you specify preferences for the sort.
![](/~/media/wholetomato/kb/documentation/sort-selected-lines/sortdialog.ashx?la=ru&hash=0775DF0E8F6C2BF7EEA9A117C14C7333979E5B0B)
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