Sort lines using patterns in CotEditor on Mac

With Sort by Pattern, you can sort selected lines using custom comparison rules.

Sort lines using patterns

  1. In the CotEditor app on your Mac, open a document.

  2. Choose Text > Lines > Sort by Pattern.

  3. Configure the sorting rules.

  4. Click Sort.

Configure the sorting rules

Set how CotEditor extracts and compares sort keys for the selected lines.

Tip: The standard Sort command in the Text > Lines menu is equivalent to sorting by “Entire line” with the “Ignore case” and “Respect language rules” options enabled.

See also