QtHelp: Make the namespace fallback for a file deterministic


When no namespace with the requested name or version contained the
file, namespaceForFile() returned the first match, so the order of
rows in the collection file decided which documentation was shown.

Return the match with the highest version instead, preferring the
first name in alphabetical order when versions are equal.

Task-number: QTBUG-150688
Pick-to: 6.12
Change-Id: I4c17b996f6d62ccbb19aa3ffe647364709c3a32f
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
commit93e6ce2ee20e3e3e102b6049e3257d1d34d2466f
parent75a8d994f1119793a3a40aa24dd972274fc01ca7
authorJarek Kobus <jaroslaw.kobus@qt.io>
committerJarek Kobus <jaroslaw.kobus@qt.io>
commit timeFri, 2 Oct 2026 14:31:59 +0000