Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Line Arrange

chitwan27chitwan276k downloads

Shuffle, reverse, or sort lines, using either visual width or lexical order.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates8

Line Arrange is an Obsidian plugin that lets you rearrange lines, blocks, or headings in different ways: sorting, reversing, and shuffling. Sorting can be done alphabetically or by visual width (how wide the text looks on screen).


Features

Line Operations

Operate on a flat selection of lines. Hierarchy is ignored; each line is treated individually.

  • Sort lines by width – order by rendered text width

  • Sort lines lexically – order alphabetically (A → Z)

  • Shuffle lines – randomize order

  • Reverse lines – flip order top-to-bottom


Block Operations

Operate on paragraphs, lists, or sections. Block hierarchy (headings, indentation) is preserved.

  • Sort blocks by width – order blocks by their widest line

  • Sort blocks lexically – alphabetical order by first line of block

  • Shuffle blocks – randomize block order while keeping sub-blocks grouped

  • Reverse blocks – flip sibling blocks while preserving nesting


How Block Sorting Works

A block = a top-level line together with all its indented children.

When rearranging blocks:

  • Indented or nested items always stay attached to their parent.
  • Sorting, shuffling, and reversing happen independently at each indentation level.
  • Blank lines within a block selection are discarded.
  • Numbered lists are automatically renumbered after reordering.

Blocks are treated as hierarchical units defined by indentation. The tree structure is preserved — only sibling order changes.

Limitations: Complex elements (horizontal rules, tables, code blocks, deeply nested structures) may not behave as expected.


Heading Operations

Operate only on top-level headings in your selection. The heading itself determines the order; everything beneath each heading (subheadings, paragraphs, lists) stays attached.

  • Sort headings by width – order by rendered heading width
  • Sort headings lexically – alphabetical order by heading text
  • Shuffle headings – randomize heading order
  • Reverse headings – flip heading order

Subheadings and content remain intact under their parent heading. These commands only affect the selected heading level (shallowest).


Usage

  1. Select the lines or blocks you want to arrange.
Select Lines Usage
  1. Run a command using one of the following methods:

Command Palette (Ctrl/Cmd + P)

Open the command palette and run a command such as:

  • Sort lines – arranges lines by visual width.
Sort Lines Usage

Editor Context Menu (Right-Click)

You can also right-click the editor and choose:

Line Arrange >

Then select the desired operation.

Context Menu Usage

List of Commands

Lines

  • Lexisort lines – alphabetically sorts selected lines
  • Reverse lines – reverses line order
  • Sort lines – sorts lines by visual width
  • Shuffle lines – randomizes line order

Headings

  • Lexisort headings – alphabetically sorts top-level headings
  • Reverse headings – reverses heading order
  • Sort headings – sorts headings by visual width
  • Shuffle headings – randomizes heading order

Blocks

  • Lexisort blocks – alphabetically sorts text blocks
  • Reverse blocks – reverses sibling block order
  • Sort blocks – sorts blocks by visual width
  • Shuffle blocks – randomizes block order

Installation

From within Obsidian

  1. Open Settings → Community plugins.
  2. Search for Line Arrange.
  3. Click Install, then Enable.

Manual installation

  1. Download the latest release from GitHub Releases.
  2. Extract into your vault at:
YourVault/.obsidian/plugins/lineArrange
  1. Enable the plugin in Obsidian settings.

Notes

  • Works best in source mode or when selections are clean.
  • Supports configurable locales for lexical sorting (so A–Z order respects your language/region).

Contributing

If you find a bug or have a feature request, open an issue on GitHub.

77%
HealthExcellent
ReviewCaution
About
Rearrange lines, blocks, or top-level headings by sorting, reversing, or shuffling. Sort alphabetically or by rendered text width, preserve block and heading hierarchy when reordering, and automatically renumber lists.
EditingMarkdown
Details
Current version
1.7.0
Last updated
2 months ago
Created
2 years ago
Updates
8 releases
Downloads
6k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
chitwan27chitwan27
github.com/chitwan27
GitHubchitwan27
  1. Community
  2. Plugins
  3. Editing
  4. Line Arrange

Related plugins

Outliner

Work with your lists like in Workflowy or Roam Research.

Various Complements

Complete words similar to auto-completion in an IDE.

Advanced Tables

Improved table navigation, formatting, and manipulation.

Importer

Import data from Notion, Evernote, Apple Notes, Microsoft OneNote, Google Keep, Bear, Roam, and HTML files.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Creases

Tools for effectively folding Markdown sections.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Simplified Chinese Word Splitting

Adds Simplified Chinese word splitting support for the editor and Vim mode.

LanguageTool Integration

advanced spell/grammar checks with the help of language-tool.

Easy Typing

Auto format when typing.