Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

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.

You can’t perform that action at this time.