Fix #47: Correct ordering of exact matches in search results