Put your lines in order.
Sort Text adds two commands to MarkEdit’s Extensions menu that sort lines alphabetically — case-insensitive, locale-aware, and numeric-aware.
groceries.md
Add to MarkEdit
requires MarkEdit 1.34+ · relaunch after install
what it does
-
Sort Lines A → Z · Sort Lines Z → A
Both act on the selected lines, or the whole document when nothing is selected.
- Case-insensitive:
applessorts withBananas, not after them. - Numeric-aware:
item2comes beforeitem10. - Locale-aware:
Éclairssorts withe. - Selections expand to whole lines; multiple selections sort independently.
- A whole sort is one undo step —
⌘Zrestores everything.
install from a url
-
Copy the extension URL:
- In MarkEdit, open the Extensions window and choose Actions → Install from URL…
- Paste the URL and confirm the install.
- Relaunch MarkEdit — Sort Text appears in the Extensions menu.
Install by copying the file instead
Every MarkEdit user extension is a single .js file in the app’s sandboxed scripts folder. Download markedit-sort-text.js and copy it there, then relaunch:
cp markedit-sort-text.js ~/Library/Containers/app.cyan.markedit/Data/Documents/scripts/