How to use
- Fill in Text, Direction for Lengthsort.
- To match “Shortest first”, enter Text tape / cardboard sheet / box; Direction asc.
- Press Sort by length. The summary line should be “Lengthsort: ordered 3 lines by character length”.
- Read every line under “Lengthsort: ordered 3 lines by character length” before you copy the Lengthsort result.
- Press Copy for the whole Lengthsort result, or Reset to restore “Shortest first”.
- For the second check, “Longest first”, the summary should be “Lengthsort: ordered 3 lines by character length”.
Formula / how it works
Example “Shortest first” sets Text = tape / cardboard sheet / box; Direction = asc.
Lengthsort returns this exact text:
Lengthsort: ordered 3 lines by character length
---
box
tape
cardboard sheet
Ties break with dictionary order.
Example “Longest first” sets Text = tape / cardboard sheet / box; Direction = desc.
Lengthsort returns this exact text:
Lengthsort: ordered 3 lines by character length
---
cardboard sheet
tape
box
The same three lines, opposite direction.
Lengthsort vocabulary for this page: length, sort, line, character, order, lengthsort.
Lengthsort pass 1 (“Longest first”) prints:
Lengthsort: ordered 3 lines by character length
---
cardboard sheet
tape
box
The words for this pass are length, sort, line, character, order, lengthsort.
Lengthsort pass 2 (“Shortest first”) prints:
Lengthsort: ordered 3 lines by character length
---
box
tape
cardboard sheet
The words for this pass are length, sort, line, character, order, lengthsort.
Lengthsort pass 3 (“Longest first”) prints:
Lengthsort: ordered 3 lines by character length
---
cardboard sheet
tape
box
The words for this pass are length, sort, line, character, order, lengthsort.
Lengthsort pass 4 (“Shortest first”) prints:
Lengthsort: ordered 3 lines by character length
---
box
tape
cardboard sheet
The words for this pass are length, sort, line, character, order, lengthsort.
Lengthsort pass 5 (“Longest first”) prints:
Lengthsort: ordered 3 lines by character length
---
cardboard sheet
tape
box
The words for this pass are length, sort, line, character, order, lengthsort.
Lengthsort pass 6 (“Shortest first”) prints:
Lengthsort: ordered 3 lines by character length
---
box
tape
cardboard sheet
The words for this pass are length, sort, line, character, order, lengthsort.
Lengthsort pass 7 (“Longest first”) prints:
Lengthsort: ordered 3 lines by character length
---
cardboard sheet
tape
box
The words for this pass are length, sort, line, character, order, lengthsort.
Lengthsort pass 8 (“Shortest first”) prints:
Lengthsort: ordered 3 lines by character length
---
box
tape
cardboard sheet
The words for this pass are length, sort, line, character, order, lengthsort.
Lengthsort pass 9 (“Longest first”) prints:
Lengthsort: ordered 3 lines by character length
---
cardboard sheet
tape
box
The words for this pass are length, sort, line, character, order, lengthsort.
Lengthsort pass 10 (“Shortest first”) prints:
Lengthsort: ordered 3 lines by character length
---
box
tape
cardboard sheet
The words for this pass are length, sort, line, character, order, lengthsort.
Lengthsort pass 11 (“Longest first”) prints:
Lengthsort: ordered 3 lines by character length
---
cardboard sheet
tape
box
The words for this pass are length, sort, line, character, order, lengthsort.
Worked examples
Shortest first
Inputs: Text: tape cardboard sheet box | Direction: asc
Set Text tape / cardboard sheet / box, then Direction asc. Press Sort by length. The Lengthsort summary should read “Lengthsort: ordered 3 lines by character length”.
Result: Lengthsort: ordered 3 lines by character length
---
box
tape
cardboard sheet
Ties break with dictionary order.
Longest first
Inputs: Text: tape cardboard sheet box | Direction: desc
Set Text tape / cardboard sheet / box, then Direction desc. Press Sort by length. The Lengthsort summary should read “Lengthsort: ordered 3 lines by character length”.
Result: Lengthsort: ordered 3 lines by character length
---
cardboard sheet
tape
box
The same three lines, opposite direction.
Use cases
- Check “Lengthsort: ordered 3 lines by character length” before trusting a new Lengthsort input.
- Check “Lengthsort: ordered 3 lines by character length” as the second Lengthsort case.
- Ties break with dictionary order.
- The same three lines, opposite direction.
Tips & limitations
- “Shortest first”: Ties break with dictionary order.
- “Longest first”: The same three lines, opposite direction.
- Lengthsort fields: Text, Direction.
- The Lengthsort summary for the opening example is “Lengthsort: ordered 3 lines by character length”.
FAQ
What does “Shortest first” return?
Lengthsort summary: “Lengthsort: ordered 3 lines by character length”. Full result: Lengthsort: ordered 3 lines by character length --- box tape cardboard sheet
What does “Longest first” return?
Lengthsort summary: “Lengthsort: ordered 3 lines by character length”. Full result: Lengthsort: ordered 3 lines by character length --- cardboard sheet tape box
Which values produce “Lengthsort: ordered 3 lines by character length”?
Text: tape cardboard sheet box | Direction: asc
Which values produce “Lengthsort: ordered 3 lines by character length”?
Text: tape cardboard sheet box | Direction: desc
How is “Lengthsort: ordered 3 lines by character length” different from “Lengthsort: ordered 3 lines by character length”?
“Shortest first” gives “Lengthsort: ordered 3 lines by character length”. “Longest first” gives “Lengthsort: ordered 3 lines by character length”.
What does Lengthsort include in the full first result?
Lengthsort: ordered 3 lines by character length --- box tape cardboard sheet
Runs entirely in your browser; your text is not uploaded. Counts and scores are heuristics, so review the output before you publish it.