# Respect \`sort_mode\` in \`workspace: open files\` \(\#56720\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f22650bca5ac750bb557c518b0f005b28230845f

Requested commit: f22650bca5ac750bb557c518b0f005b28230845f

Commit: f22650bca5ac750bb557c518b0f005b28230845f

Tree: 40ca8e1f7f50b042060e8194ea699fa30b4ad25a

Author: Aleksei Gusev

Committer: GitHub

## Message

````
Respect `sort_mode` in `workspace: open files` (#56720)

It's possible to configure `sort_mode` for the project panel like that:

```json
"project_panel": {
"sort_mode":"directories_first"
}
```

However, `workspace: open files` doesn't respect this setting and always
shows files and directories mixed. This change fixes the issue.

Release Notes:

- Improved sorting in `workspace: open files`

---------

Co-authored-by: Christopher Biscardi <chris@christopherbiscardi.com>
````

## Parents

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

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