Currently the search result order is directly provided by MySQL. After
giving it a look a few weeks ago I concluded this would require to
actually implement the search post-processing (and not just modifying
something that exists) (sorry for not answering at that time).
How about adding a feature that lets you manually specify the preferred
back-end when a package has more than one? That should be much less work.
And since this probably won't arise often, setting them manually
won't be much work for you either.