Sort with specific pattern

From “Sort by Pattern” command in the Text > Lines menu, you can sort selected lines by specifying the way to compare.

The simple “Sort” command in the Text > Lines menu is the same as sorting “entire line” with “ignore case” and “Respect language rules” options on.

Sample

In this field, you can check which part in a line will be used for sort comparison.

Sort key

Specify the part in lines to compare on sort.

Column
Treat lines as CSV (character-separated values) format and use the specific column for comparison. Whitespace around the separator will just be ignored.
Delimiter
The character separating each column. You can use escape sequences such as \t for the tabular character. A comma will be used when this field is blank.
Position
The number of the column to use as the sort key. The column count starts at 1.
Regular expression
Specify the part to compare with the regular expression.
Pattern
The regular expression pattern to extract the part to compare.
Ignore case
Whether ignore the character case by extracting the regular expression pattern. This option will be used only for the sort key extraction. To set case-insensitive state for the sort phase, set in the sort option bellow.
Use captured group
The part in matchs to use as the sort key. The entire match will be used when this checkbox is turned off.
Entire line
Compare entire lines.

Sort options

Options to control behavior on comparing sort keys.

optiondescription
Ignore caseIgnore character case on sort.
Respect language rulesFuzzily sort respecting the current language setting. i.e.: ignoring trivial differences such as character widths or diacritic marks.
Treat numbers as numeric valueNumbers within the sort keys are compared as numeric value.(e.g.: file12 > file5)
Keep the first line at the topIgnore the first line by sorting.
In decending orderSort results in decending order.