rustdoc-search: simplify checkPath
and sortResults
#118109
+77
−92
Merged