Sublime text 2 - how to order a list of words alphabetically (DESC / ASC)

SortingSublimetext2SublimetextWordAlphabetical Sort

Sorting Problem Overview


Is there any way to order a huge list of words alphabetically?

for example:

Hey
Salcaiser
Ok
Here
Strange
Weird
Gosh

By huge i mean about 500/1000 words (1 word per line) I'm on Mac osx

Sorting Solutions


Solution 1 - Sorting

Once I've found this somewhere. It worked for me. "For alpha sort, select the lines to be sorted and hit F5. This option ignores capitalization. Hitting Control F5 will sort lines starting with capital letters first, then alphabetize lines starting with lowercase letters."

"The Permute Lines menu options provide a few more ways to sort, including Reverse, which sorts in reverse alpha order, starting with lowercase letters, Unique, which removes duplicated lines, and Shuffle, which sorta kinda randomizes the text."

Hope this helps.. :)

I think General Redneck's screenshot will help. So I am adding it:

enter image description here

In v2.0.2 on Windows and Ubuntu shortcut is F9.

Solution 2 - Sorting

For those that find this question and have no luck with Rashad's F5 answer, on my copy of Sublime Text 3 the default shortcut to "Sort Lines" is F9 and to "Sort Lines (Case Sensitive)" is Ctrl + F9. See the Edit menu.

I know this doesn't directly answer the question, but I'm hoping that it saves a couple people a few minutes.

enter image description here

Solution 3 - Sorting

you select the text and:

In WindowsOS is the key "f9" only,

In MacOS keys fn + f5

Regards

Solution 4 - Sorting

Using sublime 2, found that it's built in. ya so handy I am surprised too.. :D > { "keys": ["f9"], "command": "sort_lines", "args": {"case_sensitive": false} },

{ "keys": ["ctrl+f9"], "command": "sort_lines", "args": {"case_sensitive": true} },

Just select the lines and hit the shortcut.

Solution 5 - Sorting

You select the text and:

In WindowsOS is the key "f9" only,

In MacOS keys fn + f5

Or you can search on google "Online Tools for Sort Alphabetically" then lots of tools will display on google.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionitsmeView Question on Stackoverflow
Solution 1 - SortingRashadView Answer on Stackoverflow
Solution 2 - SortingJoeDunckoView Answer on Stackoverflow
Solution 3 - Sortinguser4170375View Answer on Stackoverflow
Solution 4 - SortingRei ShinView Answer on Stackoverflow
Solution 5 - SortingMohit SharmaView Answer on Stackoverflow