When setting up a Smart search box with predictive search, you can specify multiple search indexes. The predictive results will then be grouped by index in the popup.
So for example I have the Indexes field set to: Index1;Index2
Index1;Index2
But my results appear with Index2 at the top and Index1 at the bottom. I want Index1 to always appear at the top of the predictive results.
Is there any way to control the order of the grouped indexes?
In the end I just cloned the Smart search box webpart and modified the code in the RenderResults method to sort the result groups before rendering them.
RenderResults
Please, sign in to be able to submit a new answer.