# Make alphabetical sorting the default \(\#32315\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e67b2da20c387fb2a82fbf91c767279a2c6bad79

Requested commit: e67b2da20c387fb2a82fbf91c767279a2c6bad79

Commit: e67b2da20c387fb2a82fbf91c767279a2c6bad79

Tree: 2b41af815082b419cd7d4a93b04858344adec6ef

Author: Tom Planche

Committer: GitHub

## Message

````
Make alphabetical sorting the default (#32315)

Follow up of this pr: #25148

Release Notes:

- Improved file sorting.
As described in #20126, I was fed up with lexicographical file sorting
in the project panel. The current sorting behavior doesn't handle
numeric segments properly, leading to unintuitive ordering like
`file_1.rs`, `file_10.rs`, `file_2.rs`.


## Example Sorting Results
Using `lexicographical` (default):
```
.
├── file_01.rs
├── file_1.rs
├── file_10.rs
├── file_1025.rs
├── file_2.rs
```

Using alphabetical (natural) sorting:
```
.
├── file_1.rs
├── file_01.rs
├── file_2.rs
├── file_10.rs
├── file_1025.rs
```
````

## Parents

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

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