onibaku.apps
Google Docs add-on · Free

Sort Paragraphs & Sections

Put paragraphs, lists and whole sections of a Google Docs™ document in order. A to Z, Z to A, numbers in their proper order, shortest or longest first, reversed or shuffled, and duplicates removed. Free, with no account and no sign-up.

Sections move with their headings

Sort a glossary, a list of policies or a chapter's subsections by their headings. Each heading takes its text, tables, images and sub-headings along with it.

Formatting stays put

Paragraphs are moved whole, so bold, colours, links, inline images, footnotes and paragraph styles come with them. Empty lines stay where they were.

Lists keep their sub-points

Sorting a bulleted or numbered list moves each item together with the items indented beneath it, so nothing ends up under the wrong parent.

"Item 2" before "Item 10"

Number-aware sorting reads runs of digits as numbers, so chapters, clauses and part numbers come out in the order you'd expect.

How to use it

  1. Select the paragraphs you want to sort. To sort the whole document, select nothing: the add-on asks before it changes anything.
  2. Choose Extensions → Sort Paragraphs & Sections and pick a sort.
  3. Changed your mind? Press Ctrl+Z (⌘Z on a Mac) once to undo the whole sort.

What's in the menu

Sorting sections by their headings

A section is a heading (Heading 1 to Heading 6, set in Format → Paragraph styles) and everything below it up to the next heading at the same level or above. Sorting sections moves each one as a block, so its text, tables, images and sub-headings stay together.

Number your headings, too

After sorting sections, their numbers will be out of order. Heading Numbering & Table of Contents, our other Docs add-on, numbers headings 1, 1.1, 1.1.1 or in legal style and renumbers them in one click whenever sections move. It also adds a linked table of contents, cross-references that update, and figure and table captions.

Writing with notes? Live Endnotes adds endnotes that renumber themselves as you edit, and turns footnotes into endnotes.

Good to know

Free, and private

Sort Paragraphs & Sections is free, with no paid tier and no limits. It can only see the document you use it in, runs entirely inside Google, and never sends your text anywhere: it has no permission to contact any server. See the privacy policy and terms.

Help

Something not sorting the way you expected? Email admin@onibaku.co.uk with a description of the document (no need to share it), and we'll take a look.

Google Docs™ is a trademark of Google LLC. This add-on is not made or endorsed by Google.