Sorting Text

SlickEdit® Core uses a stable quicksort algorithm to sort text. It is recommended that at least half the text be in memory for best speed results. To sort text, from the main menu, click Format → Sort. The Sort dialog box is displayed, as pictured below.

The following options are available:

Sort Commands

To use the command line for sorting, first activate the command line by pressing Esc. Sort command syntax is in the form SortCommand OptionLetter(s). The following sort commands are available:

  • sort_buffer - Sorts the current buffer.

  • sort_within_selection - Sorts text within a selected area. This command supports line and block selections only.

  • sort_on_selection - To sort on a column field, press Ctrl+B to select an area of text, then invoke the command sort_on_selection. This command supports line and block selections only.

The table below describes the OptionLetter(s) that you can use with each command.

Option

Meaning

A

Sort in ascending order.

D

Sort in descending order.

I

Case insensitive sort (ignore case).

E

Case sensitive sort (exact case which is the default).

-N

Numeric sort. C-style floating point numbers with up to 32-digit mantissa are supported.

-F

File name sort.