fix: Don't sort again if there is no search [backport/v4-fix]

Backport of !1925 (merged)


Merge request reports

Loading