Sort Lines

Contents  Previous  Next

 

Menu: Block > Sort Lines

 

Default Shortcut Key: none

 

Macro function: SortLines()

 

The Sort Lines command can be used to sort a range of selected lines.  A variety of options are provided to control the nature of the sort performed.  These options are described below:

 

BlockSortLines

 

 

Sort Type

Alphabetic (Locale)

Use this option to sort alphabetically, using the operating system's locale tables to determine how accented characters are sorted, and how uppercase and lowercase sorting is handled.

 

Alphabetic (ASCII)

Use this option to sort alphabetically, according to ASCII value.  The operating system's locale tables are not consulted.

 

Numeric

Use this option to sort numerically.  The data will be interpreted as numbers, and not as character data.  Alphabetic data will sort as though its value were zero.

 

Date

Use this option to sort chronologically by date.  Be sure to set the proper Date Format in the options box provided.

 

IP Address

Use this option to IP Addresses data with proper consideration to each node within the address.

 

Line Length

Use this option to sort lines according to their length.

 

Position of the String:

This option allows data to be sorted based on the position of a supplied string within the data.  This option can be useful for segregating lines of data that contain a certain type of information.  For example, by sorting on the string '@', lines containing email addresses would be isolated from those lines not containing email addresses.

 

Sort Column

Start of selection

Use this option if the sort should be performed based on the starting column of the selection.  The column number of the start of the selection is shown in parentheses to the right.

 

End of selection

Use this option if the sort should be performed based on the ending column of the selection.  The column number of the end of the selection is shown in parentheses to the right.

 

Other

Use this option if the sort should be performed based on some other column in the data.

 

Order

Ascending

Use this option to sort in increasing order.

 

bm2 The sort command will consult the current locale so that accented characters are sorted according to the local collating sequence.

 

Descending

Use this option to sort in decreasing order.

 

bm2 The sort command will consult the current locale so that accented characters are sorted according to the local collating sequence.

 

Random

Use this option to sort randomly.  This option might be used to randomly order a list which was already sorted.  When this option is selected, all other options become irrelevant.

 

Comparison

Case Sensitive

When an alphabetic sort is being performed, this option can be used to ensure that character case is considered significant.

 

Case Insensitive

When an alphabetic sort is being performed, this option can be used to ensure that character case is ignored.

 

 

Date Format

The date options below are applicable when a Date sort is being performed.  The slash character is shown for illustration only; any separator symbol--or none at all--may appear in the data being sorted.

 

MM / DD / YY

Data is formatted with 2-digit month, date and year.  This option can also be used for MM / DD / YYYY format dates.

 

DD / MM / YY

Data is formatted with 2-digit date, month, and year.  This option can also be used for DD / MM / YYYY format dates.

 

YY / MM / DD

Data is formatted with 2-digit year, month, and date.

 

YYYY / MM / DD

Data is formatted with 4-digit year, 2-digit month and 2-digit date.