Sorts selected text based on line length, from shortest to longest, while cutting out empty lines
foobar bazolino barolainen foo
foo foobar bazolino barolainen
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/ git clone https://github.com/kenglxn/PyramidSortSublimeTextPlugin.git
cd ~/Library/Application\ Support/Sublime\ Text/Packages/ git clone https://github.com/kenglxn/PyramidSortSublimeTextPlugin.git
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.