Skip to content

kenglxn/PyramidSortSublimeTextPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo

Demo

Sorts selected text based on line length, from shortest to longest, while cutting out empty lines

So this:

foobar
bazolino

barolainen
foo

Becomes:

foo
foobar
bazolino
barolainen

Installing

Sublime 2

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/
git clone https://github.com/kenglxn/PyramidSortSublimeTextPlugin.git

Sublime 3

cd ~/Library/Application\ Support/Sublime\ Text/Packages/
git clone https://github.com/kenglxn/PyramidSortSublimeTextPlugin.git

Alternative

There is a SortBy package available through Package Control that has a variety of sorting commands, including by length ascending and descending. If more advanced sorting is your cup of tea, then you should probably give it a look.