A Sublime Text plugin that allows you to sort lines with methods that are not present by default.
- Natural order
- Sort by the length of lines (Ascending / Descending)
- Can be sorted alphabetically (Ascending / Descending) (Editable in SortBy.sublime-settings)
- Sort lines of text alphabetically (Ascending / Descending)
- Sort numbers numerically with and without surrounding caracters (Ascending / Descending)
- Binary
- Hexadecimal
- Integer
- Octal
- Able to sort the entire file (when there is no selection)
- Case sensitivity option for the alphabetically sort (Editable in SortBy.sublime-settings)
- Find your local Sublime Text [2 or 3] Packages directory.
Example:
C:\Users\USER_NAME\AppData\Roaming\Sublime Text [2 or 3]\Packages
- Copy the SortBy directory inside the Packages directory.
- Restart Sublime Text and enjoy !
- Select the text you want to sort.
- Go in the menu "Tools", "Doi9t's packages" then you should see "SortBy".
- Choose your option. (Either Reverse or normal).
Or using the control palette
CTRL + SHIFT + P on Windows/Linux.
COMMAND + SHIFT + P on OS X.
and type SortBy in the box.