Skip to main content
Noble Desktop/1 min read

Sort Lines in Sublime Text

Sort Lines Shortcuts

Sort Lines Ascending

F5 (case-sensitive A→Z).

Sort Lines Descending

Ctrl-F5 (Z→A).

Case-Insensitive

Cmd-F5 (Mac) or Ctrl-Shift-F5 (Windows).

Sort a Selection

Highlight specific lines first — the sort applies only to those.

Master Web Development at Noble Desktop

Noble Desktop's Full-Stack Web Development Certificate covers HTML, CSS, JavaScript, and the modern web stack.

Sublime Text allows you to quickly sort lines alphabetically. Select the lines you want to sort and choose Edit > Sort Lines. You can also use the keystroke F5 (Mac) or F9 (Windows).

Sort Lines in Sublime Text

Learn more Sublime Text Coding Tips. These coding tips are covered in our hands-on coding classes and bootcamps in NYC.