# keymap_ui: Add default sort to keymap table \(\#33781\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6d09f3fa40c7d546ca5440e7ba9cb77bc7b7d331

Requested commit: 6d09f3fa40c7d546ca5440e7ba9cb77bc7b7d331

Commit: 6d09f3fa40c7d546ca5440e7ba9cb77bc7b7d331

Tree: b8d514dc78310cd4ee75e2fd8142b1cfc0cae547

Author: Ben Kunkle

Committer: GitHub

## Message

```
keymap_ui: Add default sort to keymap table (#33781)

Closes #ISSUE

Adds a default sort when no filter query is provided in the keymap
editor.

The default sorting algorithm sorts by the source of the binding
(roughly in order of precedence)
 
- User
- Vim
- Base
- Default
- None (unbound actions) 

within each source it sorts by action name alphabetically.

Release Notes:

- N/A *or* Added/Fixed/Improved ...
```

## Parents

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

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