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 32052e5054
commit 41227f01d2

View file

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