Install from inside Code by bringing up running the install extension
command and typing sort
. Check out the documentation for more information.
Select some text and press shift+alt+s
to sort your current selection, press again to reverse the sort.
If you have selected multiple lines, lines will be sorted. If you have selected part of a line, words will be sorted.
If you want to set the locale for the sort, you can do so with the sort.locale
option. The localeCompare function will then be used for the sort, follow the link for more information.
{
"sort.locale": "sv",
}