Sort all the things!
apm install sorter
By default, the following keyboard shortcuts are assigned:
macOS | API Call | Linux |
---|---|---|
⌃⌥E |
sorter:sort |
CTRL+ALT+E |
⌥⇧E |
sorter:natural-sort |
ALT+⇧+E |
Single-Line-Selections and selections spanning parts of one line
sorter
will attempt to sort JSON
sorter
will attempt to sort YAML
sorter
will attempt to sort HTML
sorter
will attempt to sort CSS
sorter
will attempt to sort any =
, ,
or
separated valuessorter
will attempt to restore semicolons and indentation{"b":0,"a":1}
→ {"a":1,"b":0}
id="a" class="example"
→ class="example" id="a"
a, x, c, 2;
→ 2, a, c, x;
Multi-Line-Selections
sorter
will attempt to sort JSONMultiple Selections
Alphabetic Sort
sorter:sort
Natural Sort
sorter:natural-sort