Sort notable traits in hover

Previously it was ordered by what accidentally happened to be the crate graph order, which isn't sensible, plus it caused changes when any change was done to salsa IDs.
This commit is contained in:
Chayim Refael Friedman 2025-04-18 12:45:22 +03:00
parent 6f994da630
commit 14c2933de2

View file

@ -505,6 +505,7 @@ fn notable_traits(
)
})
})
.sorted_by_cached_key(|(trait_, _)| trait_.name(db))
.collect::<Vec<_>>()
}