Text 59

Reverse line order

Reverses the order of the list from the last line to the first line.

Input

The example value has been entered. Check it immediately or change the value.

Run with Ctrl or ⌘ + Enter

Input is processed in the browser. Refreshing returns a sample value.

Result

Check or change the value using the example value result.

Up to 50,000 characters. Input and results are processed in this page’s memory and not saved. Line breaks use LF.

Share result

Share the tool link and result text together. No URL is included in the result. Check the below content and then share it.

Calculation·conversion criteria

Reverse order from the last line of the list.

Reverses only the order of the line array.

Input example

1 / 2 / 3 → 3 / 2 / 1

If you reverse the first, second, and third lines, the order becomes third, second, first. The order of characters within a line remains unchanged.

How to use

  1. Use the provided example value or replace the list field.
  2. Click Verify result and check the following result.
  3. Result can be copied if needed.

Frequently Asked Questions

Is descending order sorting the same as reversing line order?

No. Reversing only reverses the current position; it does not compare the size of characters or numbers. Empty lines in the original are also moved as one line.

Calculation criteria and reference materials

The calculation formula and scope of this tool are disclosed in the above description. Examples can be checked by substituting input values into the formula or following the specified string and calendar handling rules.

Verification of calculation criteria: · Calculation·verification principles · Report errors