This Eclipse plugin adds sorting to the Edit menu. You can sort case sensitively, case insensitively, numerically, and reverse the selected text. The numerical sort assumes that the first set of characters on each line is a number and sorts accordingly.
Installing and Using Sort It
Download the plugin and unzip it into your plugins directory. The zip file contains a directory called com.teaminabox.sortit_x.y.z, which when placed under the Eclipse plugins directory will add the Sort It plugin to your Eclipse install. You need to restart Eclipse to make the plugin available.
Enable the plugin by customising the perspective and adding the actions under the following menu path: Window | Customize Perspective | Commands and checking the Sort It check box in the left most column.
To sort lines of text, select them, and select the appropriate sort from the Sort It menu item under th edit menu or popup menu. If you don’t select any lines then the sort will be performed on the entire file
CTRL+SHIFT+F will perform a case sensitive sort.
You can add your own key bindings in the Edit category.
Like it?
... then Rate It!
Bugs and History
Please report any bugs you find to channingwalton [the at thing] mac.com
Downloads
Eclipse 3.1 M7 and later
- 1.4.0 SortIt context menu added to compilation unit editors.
- 1.3.2 Fixed a bug: if two text editors are open, and a sort has been performed on one, the cursor placed in the second and the edit menu used to sort the second editor, the contents of the first editor were sorted.
- 1.3.1 Numeric Sort now supports scientific notation and floats as well as integers. Line endings match whatever the file being sorted is using. Finally added unit tests – the shame became too much!
- 1.3.0 Fixed a bug. Added support to sort whole file if no lines are selected. Added KeyBinding CTRL+SHIFT+F that does a caxe sensitive sort