Editorial Workflows

Sort Lines

public workflow

Install Workflow

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Sorts selected lines in ascending or descending order, including partially selected lines.

Shared by: JStarkman

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Extend Selection ?
Direction
  • Backward
  • Forward
  • Both
Unit
  • Start/End of Document
  • Start/End of Line
  • Number of Characters...
1
Selected Text ?
Entire Line(s)
OFF
Empty Selection Output
  • No Output
  • All Text
  • Closest Word
Folded Text
  • Include
  • Replace with:
Set Variable ?
Variable Name
SelectedText
Value
Input
Show Alert ?
Title
Sort Order
Message
Button 1
Ascending
Output Value
Ascending
Button 2
Descending
Output Value
Descending
Button 3
(don't show)
Output Value
Show Cancel Button
ON
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Ascending
Generate Text ?
Text
SelectedText
Sort Lines ?
Sort Order
  • Ascending (A → Z)
  • Descending (Z → A)
…End If
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Descending
Generate Text ?
Text
SelectedText
Sort Lines ?
Sort Order
  • Ascending (A → Z)
  • Descending (Z → A)
…End If
Replace Selected Text ?
Replacement Text
Input