Pyramid Sort plugin for Sublime text
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Default.sublime-commands
LICENSE
PyramidSort.py
README.md
demo.gif

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.