# Use consistent ordering for popup menus \(\#27765\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7bc62de267dd68f022aef4b8b7a4a3c1913e2ebd

Requested commit: 7bc62de267dd68f022aef4b8b7a4a3c1913e2ebd

Commit: 7bc62de267dd68f022aef4b8b7a4a3c1913e2ebd

Tree: f1a65aaad2e9a21099b70a5f08a37695ed43a968

Author: Aaron Feickert

Committer: GitHub

## Message

```
Use consistent ordering for popup menus (#27765)

Before this change, the editor completion menu and gutter menus reversed their order so that the initial selection is near the user's focus.  This change instead displays these menus in a consistent top-to-bottom order because the following benefits outweigh that benefit:

* Matches behavior of some other editors (Neovim and VSCode).
* Looks better for lexicographic lists.
* Keeps the meaning of keyboard interaction consistent, if the user is anticipating the order of the menu's contents.

Could consider making this configurable in the future if desired.

Closes #25066.

Release Notes:

- N/A
```

## Parents

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

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