# Make PathList equality ignore display order \(\#52052\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d0baf212d3051f22ffc494bbe53229d8532be6e7

Requested commit: d0baf212d3051f22ffc494bbe53229d8532be6e7

Commit: d0baf212d3051f22ffc494bbe53229d8532be6e7

Tree: 3273a54635157449e2555e5c9f25e423b17aa630

Author: Eric Holk

Committer: GitHub

## Message

```
Make PathList equality ignore display order (#52052)

`PathList` stores both sorted paths and the original insertion order
(for display in the project panel). Previously, `PartialEq`, `Eq`, and
`Hash` were derived, which meant two `PathList` values with the same
paths but different display orderings were considered unequal.

This change replaces the derived impls with manual ones that only
compare
the sorted `paths` field, matching the semantic intent: a `PathList`
identifies a set of directories, and the display order is not part of
that identity.

Release Notes:

- N/A
```

## Parents

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

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