preserve sorting in UNION of search query