Disable sort during search

Disable sort during search

CrazyRaccoonCrazyRaccoon Posts: 1Questions: 1Answers: 0

Is it possible to disable all column sorting when performing a search? I would like to let the search scoring mechanism to dictate the order in that case.

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    Hi CrazyRaccoon,

    I don't think that's possible, but there may be a workaround.

    You could listen for the search event kicking off, and then inside that callback, you could reset the ordering with the order.neutral() plugin. That sounds like what you're looking for.

    Hope that helps,

    Cheers,

    Colin

This discussion has been closed.