# diagnostics: Fix panic due non-sorted diagnostics excerpt ranges \(\#42416\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 46db753f7972e041611f89c2a22023b90fcde7f6

Requested commit: 46db753f7972e041611f89c2a22023b90fcde7f6

Commit: 46db753f7972e041611f89c2a22023b90fcde7f6

Tree: 491f5a04abaa6d9cc5e18be92362a2231554f2f2

Author: Lukas Wirth

Committer: GitHub

## Message

```
diagnostics: Fix panic due non-sorted diagnostics excerpt ranges (#42416)

Fixes ZED-356

Release Notes:

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

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
```

## Parents

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

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