# editor: Assert ordering in selections of \`resolve_selections\` \(\#38861\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 16fccb5c7677fc7cf6be72389d1b5592f112b210

Requested commit: 16fccb5c7677fc7cf6be72389d1b5592f112b210

Commit: 16fccb5c7677fc7cf6be72389d1b5592f112b210

Tree: 39ee256d352384786577d7cb83d654b2a18aae15

Author: Lukas Wirth

Committer: GitHub

## Message

```
editor: Assert ordering in selections of `resolve_selections` (#38861)

Inspired by the recent anchor assertions, this asserts that the produced
selections are always ordered at various resolutions stages, this is an
invariant within `SelectionsCollection` but something breaks it
somewhere causing us to seek cursors backwards which panics.

Related to ZED-13X

Release Notes:

- N/A
```

## Parents

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

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