# Add sort lines command \(\#2786\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/cc23360bab743db4d7383962f99b885746e6b75f)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: cc23360bab743db4d7383962f99b885746e6b75f

Requested commit: cc23360bab743db4d7383962f99b885746e6b75f

Commit: cc23360bab743db4d7383962f99b885746e6b75f

Tree: 04c482649a0cf3d736538cbfafb8e70f0d2cefcc

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Add sort lines command (#2786)

This PR adds command palette actions for:

- `sort lines case sensitive`
- `sort lines case insensitive`
- `reverse lines`
- `shuffle lines`

Closes out:

- https://github.com/zed-industries/community/issues/658

and partially closing out:

- https://github.com/zed-industries/community/issues/57 (which is
currently a top-ranked issue)

There are issues with dedupe lines and I didn't try to tackle converting
variable names between different conventions. I'll likely close out 57
with a note to just upvote the remaining individual issues

Release Notes:

- added command palette actions for `sort lines case sensitive`, `sort
lines case insensitive`, `reverse lines`, and`shuffle lines`
(([#57](https://github.com/zed-industries/community/issues/57)),
([#658](https://github.com/zed-industries/community/issues/658)))
```

## Parents

- [c32fd576438c7e7f81c6cd8ef0276268d0428c4e](https://git.cafe/gitcafe/zed/commit/c32fd576438c7e7f81c6cd8ef0276268d0428c4e?format=markdown)

- [4085df5146f015d88c0daca229896ec32e94ee84](https://git.cafe/gitcafe/zed/commit/4085df5146f015d88c0daca229896ec32e94ee84?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/cc23360bab743db4d7383962f99b885746e6b75f?format=markdown)
