Fix search result ordering based on latest API.
The latest prefix search API now includes an "index" property with each
redirected result, as well as with normal results. This isn't an "optimal"
solution (see the discussion in T110231 ), but it works, and we should use
it until an even more complete solution is presented.